toolgarden.xyz
中文

TXT Merge

Free online tool to merge multiple TXT files into one TXT file

File merge

Merge multiple TXT files into one TXT file in order.
File list0 files

Uploaded files will appear here.

Merged result

You are in TXT mode. Upload files and click merge.

About this tool

TXT merge concatenates plain text in file order for logs, draft chapters, and exported data fragments. Plain text has no heading or pagination structure, and separator newlines determine whether the last line of one file runs into the first line of the next.

Character encoding is the main risk. Mixed UTF-8, GBK, or other encodings can display incorrectly; also standardize line endings, trailing blank lines, and whether filenames should mark boundaries.

How to use it

  1. Confirm encoding and content

    Open each source and verify non-ASCII text, symbols, and line breaks.

  2. Arrange the order

    Decide on blank lines or titles between files, then order the list.

  3. Inspect every join

    Search the end and beginning of each source in output for joined lines or omissions.

Supported range and limits

Input / output
Several plain-text files in, one TXT out
How it joins
End to end in list order, with a line break inserted between files
Encoding
Read and written as UTF-8. Sources in GBK or another encoding may come out garbled and need converting first
Line endings
Mixing Windows CRLF with Unix LF leaves both kinds in the merged output
Not done for you
No deduplication, no sorting, no trimming of blank lines; content is preserved verbatim
Good for
Drafts split by chapter, logs split by day, plain-text records exported in batches

When you would use it

  • Combining rotated logs

    Join logs split by date or size in chronological order.

  • Assembling plain-text chapters

    Combine unformatted drafts into one searchable file.

  • Merging logs split by date

    Join a set of daily plain-text exports into one file, then run counting or searching over the whole thing.

What to know before you start

  • The tool does not sort by timestamps automatically; list order controls output.
  • Concatenation cannot repair misdecoded text; convert each source to UTF-8 first.
  • Large files consume browser memory, so retain sources and compare output size.

Related concepts

UTF-8
A common text encoding covering Unicode while remaining ASCII compatible.
line ending
A sequence marking a new line, commonly LF or CRLF.

Frequently asked questions

How does TXT Merge separate file contents?
The output TXT joins files in order and adds the source filename before each section.
The merged file is garbled; why?
The sources are not UTF-8. GBK is the common culprit for Chinese text; convert to UTF-8 in an editor before merging. A batch with mixed encodings has to be converted file by file, since it cannot be detected reliably at merge time.
Does it remove duplicate lines?
No. Content is preserved verbatim; no deduplication, no sorting, no trimming of blank lines. Do those afterwards with another tool.