Merge Text Files
Combine two or more text files into a single file β free and instant. Drag files in, put them in the right order, pick a separator and download the merged result. Everything happens in your browser; nothing is uploaded.
or click to browse β TXT, CSV, LOG, MD and other text files Β· stays on your device
Use \n for a line break, \t for a tab.
How to merge text files online
- Add your files. Drag and drop any number of text files (TXT, CSV, LOG, MD, code filesβ¦) into the box above, or click it to browse. You can add more files at any time.
- Arrange and configure. Use the β and β buttons to put the files in the order you want, then choose what goes between them: a new line, a blank line, a file name header, custom text, or nothing at all.
- Merge and download. Press Merge files, check the preview, then copy the combined text or download it as a single file.
About this tool
This free file merger joins multiple text files into one document without any software. It is handy for combining log files before analysis, concatenating CSV exports, stitching chapters of a manuscript together, joining SQL scripts, or bundling code snippets into one file. The optional file name header inserts a ===== filename ===== line before each file so you can always tell where one file ends and the next begins, and the custom separator supports \n and \t escapes for full control.
Unlike upload-based services, this text file combiner runs entirely in your browser: your documents never leave your device, which makes it safe for confidential logs and private notes, and there is no file count or size cap beyond your device's memory. Need the opposite operation? Try the Split Text File tool.
Frequently asked questions
In what order are the files merged?
Files are merged top to bottom exactly as shown in the list. Newly added files are appended to the end, and you can reorder them at any time with the β and β buttons before merging.
Can I merge CSV files with this tool?
Yes β choose the New line separator so rows follow each other directly. Note that each CSV keeps its own header row; delete the duplicate header lines afterwards if your files all share the same columns.
Are my files uploaded anywhere?
No. The files are read and combined locally with JavaScript in your browser. Nothing is sent to a server, so the tool even works offline once the page has loaded.
What happens to blank lines at the end of each file?
For the new line, blank line and file name header separators, trailing line breaks at the end of each file are trimmed first so you get exactly one separator between files. The Custom text and Nothing options join the raw file contents unchanged.