Document & File Tools

Text File Merger

Combine up to 100 text files into one. Put them in order, choose what goes between them, from a simple line break to a header with each file’s name, and get a single UTF-8 file with consistent line endings. Files in older encodings are converted, CSV header rows can be kept only once, and everything happens in your browser.

  • Runs in your browser
  • No sign-up
  • Free to use

How to use Text File Merger

  1. Drop the text files you want to combine.
  2. Use the arrows to put them in order.
  3. Choose the separator, line endings and output name.
  4. Merge and download the result.

Text File Merger features

Any text format

TXT, CSV, TSV, logs, Markdown, JSON lines, SQL, subtitles and more.

Your order

Move files up and down before merging.

Separators

Line break, blank line, file-name headers or custom text.

Clean output

UTF-8 with LF or CRLF line endings and a final newline.

Encoding conversion

UTF-16 and Windows-1252 files are converted to UTF-8.

CSV aware

Keeps the header row once when the files share it.

When to use Text File Merger

  • Combining daily log files into one for searching.
  • Merging CSV exports with the same columns.
  • Joining chapters or notes into a single document.
  • Building one SQL script from several migration files.

Text File Merger FAQ

Are my files uploaded?

No. They are read and merged in your browser, so even large or confidential files stay on your device.

What happens to different encodings?

Every file is decoded (UTF-8, UTF-16 or Windows-1252) and the merged file is written as UTF-8, so characters stay correct.

Why choose line endings?

Windows uses CRLF and Linux and macOS use LF. Mixing them confuses some tools; the merger makes them consistent.

Can it merge CSV files with headers?

Yes. Tick the CSV option, and files whose first line matches the first file’s header have it removed. For more CSV control, use the CSV Merger.

Is there a size limit?

Up to 100 files and 200 MB in total, limited by browser memory.

Can I merge PDFs or Word files?

This tool is for plain text. Use Merge PDF for PDFs.

Merging text files properly

Concatenating text files sounds trivial, and on a command line it often is. In practice the details cause trouble: one file lacks a final newline so its last line runs into the next file’s first, some files use Windows line endings and others Unix ones, an old file is in Windows-1252 while the rest are UTF-8, and CSV exports each repeat their header row. This merger takes care of all of these.

Every file is decoded on its own before merging. Byte-order marks are recognised and removed, UTF-16 files are converted, and files that are not valid UTF-8 are read as Windows-1252, the most common legacy encoding, with a note so you can check them. The merged file is written as UTF-8, optionally with a byte-order mark for spreadsheet programs that need it.

Separators make the boundaries visible. A blank line suits notes and documents, a header line with the file name suits logs and code, and a custom separator lets you insert anything from a dashed line to a SQL comment. Line endings are normalised to LF or CRLF, or kept as they are if you need byte-for-byte content.

For CSV data, the first line of each file is usually the same header. With the CSV option, the header is kept from the first file and dropped from later files whose first line matches exactly; files with a different header are kept intact and reported, because their columns may not line up.

All processing happens in your browser. The order of files can be changed with the arrows before merging, and the result is a single download.

Other useful tools