Merge Text Files
Combine many text, CSV or log files into one, in the order you choose.
Runs in your browser. Nothing is uploaded.
Updated
How to use Merge Text Files
- Choose or drop the files and put them in order.
- Choose what goes between files and whether to keep the header only once.
- Merge, check the preview and download.
Merge Text Files at a glance
Typical use: Combine twelve monthly CSV exports into one file with a single header row.
Runs in your browser; nothing is uploaded.
When to merge files
- Monthly CSV exports that should become one table.
- Log files from several days or servers, to search them in one go.
- Parts of a file that was split earlier, put back together.
What the options do
- Start each file on a new line: if a file doesn’t end with a line break, its last line would run into the next file’s first line. This adds the missing break.
- Keep the header only once: for CSV files with the same header row; the first line of every file after the first is removed, and the page tells you if a header differs.
- Between files: nothing, an empty line, or a line such as
==> feb.csv <==so you can see where each file starts. - Remove BOMs: some programs put an invisible marker at the start of UTF-8 files. Inside a merged file it shows up as stray characters, so only one at the very start is kept.
Merge Text Files example
jan.csv and feb.csv both start with date,amount, and jan.csv has no line break after its last row. With “Start each file on a new line” and “Keep the header only once”, the result is:
date,amount 2026-01-31,40 2026-02-01,25
Prefer the terminal?
The same with cat (macOS and Linux) or copy (Windows):
cat 'jan.csv' 'feb.csv' 'mar.csv' > 'merged.csv'
copy /b jan.csv+feb.csv+mar.csv merged.csvBoth join the files exactly as they are: no line break is added when a file doesn’t end with one, every header row stays, and BOMs end up in the middle. The options on this page take care of that.
Frequently asked questions
Are my files uploaded?
No. They are read and joined in your browser; nothing is sent to our server.
How do I set the order?
Files are joined in the order of the list. Move them with the arrows, or sort by name (file2 comes before file10) or by date.
Can I merge files with different encodings?
The bytes are joined as they are, so a Windows-1252 file and a UTF-8 file would mix encodings. The page warns when it sees that; convert the files to UTF-8 first.
What are the limits?
Up to 500 files and 500 MB in total.