File Merger & Joiner
Merge text files into one with optional file-name headers, separators and fixed line endings, or join any files byte for byte, such as .part001, .part002 and .part003 back into the original.
How to Use
- Choose Merge text to combine text, CSV, Markdown or log files, or Join bytes to put any files back together exactly, such as the pieces of a split archive.
- Drop the files. Split pieces named .part001, .001 or similar are put in number order automatically; use the arrows to change the order of anything else.
- For text, pick a header for each file, a separator, and the line endings you want. Tick Remove repeated header lines when merging CSV exports.
- Check the readouts and the diagram: line count, size, line endings, or for parts the order check and SHA-256 of the result.
- Press Download (or Copy for text). The Show Work section lists every file’s offset, encoding and changes.
Worked Example
Rejoining a split file. A 10,000-byte file split into 4,096-byte pieces gives backup.zip.part001 (4,096 bytes), .part002 (4,096) and .part003 (the remaining 10,000 − 8,192 = 1,808). Joined in order they start at offsets 0, 4,096 and 8,192 and add up to 4,096 + 4,096 + 1,808 = 10,000 bytes, identical to the original, so their SHA-256 is identical too. Every piece but the last is the same size; a short piece in the middle means an incomplete download.
Merging text. Three chapters of 38, 40 and 20 bytes, the second saved on Windows with CRLF line endings and the third without a final line break. With LF output, a “## name” header and a blank line between files, the CRLF breaks become LF, a line break is added after “The end.”, and each chapter starts under its own heading.
The common mistake: sorting pieces by name. Pieces numbered without leading zeros sort alphabetically as part1, part10, part11, part12, part2 … part9. Joined in that order, a 12-piece backup is scrambled from the second piece on and will not open. Sorting by the number gives part1, part2 … part12. With zero-padded names (part001 … part012) both orders agree.
Show Work
How It Works
From cat to copy /b
Joining files is as old as Unix: cat, short for concatenate, appeared in the first edition of Unix in 1971 and still prints files one after another. Windows inherited the MS-DOS way, copy /b part1 + part2 whole, where /b means binary — when combining files with +, copy otherwise treats them as text and stops each one at its first Ctrl+Z byte (0x1A), the old CP/M end-of-file marker. The split command names its pieces xaa, xab, xac, which sort correctly as text; tools that number pieces 1, 2 … 10 without leading zeros are what make number-aware sorting necessary.
Line endings come from typewriters and teleprinters: carriage return (CR) moved the print head back, line feed (LF) advanced the paper. Unix kept only LF, classic Mac OS used CR, and MS-DOS and Windows kept both, CRLF. That is why a file from Windows shows ^M at line ends in some Unix editors, and why merging files from different systems often mixes the two.
About This Tool
This tool does two jobs that used to be separate pages. Merge text combines text files with optional headers, separators, byte-order-mark removal, CSV header de-duplication and line-ending conversion. Join bytes concatenates any files exactly, sorts numbered pieces, flags missing or short pieces and reports the SHA-256 of the result.
Everything happens in your browser. In Join bytes mode the pieces are never copied into memory: the download is assembled from the files on your disk, so a multi-gigabyte backup joins as quickly as a small one. Nothing is uploaded.
It suits anyone reassembling downloads, combining exports or logs, or putting a document together from chapters.
Related tools: ZIP & Unzip Tool, Merge PDF, and Database Viewer.
Frequently Asked Questions
How do I rejoin files split into .part001, .part002 and so on?
Choose Join bytes and drop all the pieces at once. They are sorted by their number, checked for gaps, and joined with nothing added or removed, so .part001 to .part003 of 4,096 + 4,096 + 1,808 bytes become one 10,000-byte file. The output name drops the .partNNN ending. It works the same for 7-Zip and HJSplit pieces named .001, .002.
Why did two lines get stuck together after merging?
The first file did not end with a line break, so its last line ran straight into the next file’s first line: “last line” + “first line” became “last linefirst line”. Plain concatenation, like the cat command, does this. Keep “End every file with a line break” ticked and the tool adds the missing break only where one is needed.
Can I merge CSV files without repeating the header row?
Yes. Tick Remove repeated header lines. The first file keeps its header; in every later file the first line is removed only if it is identical to that header, so three exports of 100 rows each give one header and 300 rows. A file whose first line differs is kept whole and flagged, because its columns may not line up.
Does joining change my files in any way?
In Join bytes mode, no: the output is the input files’ bytes one after another, and the readout shows its SHA-256 so you can compare it with the original’s published checksum. Merge text mode does change bytes on purpose, since it decodes the text, removes byte-order marks, adds headers and can convert line endings, so use it only for text.
Can it join split RAR or ZIP archives?
Only plain splits. Pieces made by a file splitter, 7-Zip volumes (.7z.001) and the split command are raw slices and join perfectly. Multi-volume RAR files (.part1.rar) and split ZIPs (.z01 … .zip) carry their own headers in each volume, so open them with the archiver instead; the tool warns when it sees those names. Your files are joined on your device and never uploaded.
How do I use the File Merger & Joiner?
Just type your numbers. The answer shows up right away — there is no button to press. Change anything and it updates by itself.
Do I need to install or sign up for anything?
Not at all — it runs in the browser with nothing to install and no account. After it loads once, it even works without an internet connection.
Is my information private?
Yes. Everything happens in your browser. Nothing you type is sent to a server or saved anywhere.
Common Use Cases
Rejoin a split download
Put 12 pieces of a 1.2 GB backup back together: names ending .part1 to .part12 are sorted 1, 2 … 12, not 1, 10, 11, 12, 2, and the joined file is never held in memory.
Combine CSV exports
Merge January, February and March exports of 100 rows each into one 300-row file with a single header line.
Assemble a document
Merge 3 Markdown chapters into one file with “## chapter-1.md” headings and a blank line between them.
Gather logs for a ticket
Combine 5 server logs, each under a “===== name =====” banner, and convert Windows CRLF line endings to LF on the way.
Concatenate media segments
Join MPEG-TS segments (.ts) byte for byte; transport streams are designed to be played back to back.
Last updated: