Text File Merger
Combine multiple text files in order with a custom separator
Text File Merger — what it does
Combine several text files into one, in the order you selected them, with a separator label placed between each file's contents. The separator is what keeps the result usable: without a marker between sections, a merged file gives no clue where one source ended and the next began.
Worked example
Two stand-up note files merged with \n===== next file =====\n typed into the separator box (\n becomes a line break).
Input — the two files (the bracketed filenames are labels, not file content)
[notes-monday.txt] Monday stand-up - Ann: finishing the Q3 report - Ben: fixing the CSV export bug [notes-tuesday.txt] Tuesday stand-up - Chloe: client call at 14:00 - Dev: on support rota
Output — merged-text.txt
Monday stand-up - Ann: finishing the Q3 report - Ben: fixing the CSV export bug ===== next file ===== Tuesday stand-up - Chloe: client call at 14:00 - Dev: on support rota
notes-monday.txt ends with a line break and notes-tuesday.txt does not, which is why a blank line precedes the separator but none would follow a third file. Nothing but the separator is inserted.
When this tool helps
- Consolidating log files from several days or servers into one document for searching.
- Merging notes or transcript fragments captured in separate files.
- Combining code or configuration snippets into a single reference file.
How to use it
- Choose the text files in the order they should appear.
- Set a separator label.
- Merge the files.
- Download the merged TXT.
Accuracy, limits, and good practice
- Include the filename in the separator label where you can — provenance is exactly what gets lost the moment files are concatenated.
- Selection order determines the merge order, so rename files with numeric prefixes first if a strict sequence matters.
- Files should share an encoding. Mixing UTF-8 with a legacy code page produces mojibake in the merged result.
- Merge a copy, not the originals. Once concatenated, splitting the result back into its source files is manual work nobody enjoys.
Frequently asked questions
Does it work with CSV files?
It concatenates text, so each file's header row would be repeated. Use the CSV merger for tabular data instead.
Is there a file size limit?
Memory is the practical limit. Very large log sets are better merged with a command-line tool.
Can I merge files of different types?
Any plain text works. Binary files are not text and will produce unusable output.
Are line endings normalised?
Files are joined as they are, so a mix of Windows and Unix line endings carries through into the merged output.
Can the separator include the filename?
No. The separator is a fixed piece of text placed between files; there is no filename placeholder, so type the names into the separator yourself or add a heading line at the top of each file before merging. Typing \n in the separator box produces a line break, and the separator is not added before the first file or after the last.
Why does the preview stop before the end of the merged text?
The on-page preview shows only the first 20,000 characters. The download, merged-text.txt, always contains the full merged text, so check the file rather than the preview after a large merge.
Related tools on this site
- Timesheet Generator — Calculate daily and weekly work hours and export a printable timesheet
- Calendar Event QR Generator — Create a QR code and ICS file for a calendar event
- File Chunk Merger — Merge numbered file chunks back into one file
Further reading: How Local Browser Tools Protect Your Files
Everything above runs inside this page. Text File Merger needs no account, no upload, and no server round trip — close the tab and nothing is left behind.
文字檔案合併器能做什麼
把多個文字檔依你選取的順序合併成一份,並在每個檔案內容之間放入分隔標籤。分隔標籤正是讓結果可用的關鍵:段落之間沒有標記,合併檔就完全看不出前一份在哪結束、下一份從哪開始。
實際範例
兩份站立會議紀錄檔合併,分隔文字欄填 \n===== next file =====\n(\n 會變成換行)。
輸入:兩個檔案(方括號內的檔名只是標示,不在檔案內容裡)
[notes-monday.txt] Monday stand-up - Ann: finishing the Q3 report - Ben: fixing the CSV export bug [notes-tuesday.txt] Tuesday stand-up - Chloe: client call at 14:00 - Dev: on support rota
輸出:merged-text.txt
Monday stand-up - Ann: finishing the Q3 report - Ben: fixing the CSV export bug ===== next file ===== Tuesday stand-up - Chloe: client call at 14:00 - Dev: on support rota
notes-monday.txt 結尾有換行而 notes-tuesday.txt 沒有,所以分隔文字前多了一行空白,若再接第三個檔案則不會有。工具只加分隔文字,其他什麼都不加。
什麼時候用得上
- 把多天或多台伺服器的日誌整併成一份文件以便搜尋。
- 合併分散在不同檔案中的筆記或逐字稿片段。
- 把程式碼或設定片段整合成單一參考檔。
使用步驟
- 依應出現的順序選擇文字檔。
- 設定分隔標籤。
- 執行合併。
- 下載合併後的 TXT。
精確度、限制與實務建議
- 可以的話請把檔名放進分隔標籤——檔案一旦串接,最先消失的就是來源資訊。
- 選取順序決定合併順序,順序嚴格時請先為檔名加上數字前綴。
- 各檔案編碼應一致。UTF-8 與舊編碼混用,合併結果會出現亂碼。
- 請合併副本而不是原始檔。一旦串在一起,要再拆回各來源檔就是沒人想做的手工活。
常見問題
可以合併 CSV 嗎?
它是串接文字,每個檔案的標題列都會重複出現。表格資料請改用 CSV 合併工具。
有檔案大小限制嗎?
實際限制在記憶體。超大量的日誌建議用命令列工具合併。
可以合併不同類型的檔案嗎?
任何純文字都可以。二進位檔不是文字,合併結果無法使用。
換行符會統一嗎?
檔案是原樣接合的,因此 Windows 與 Unix 換行混用的情況會一併帶進合併結果。
分隔文字可以包含檔名嗎?
不行。分隔文字是固定的一段文字,插在檔案與檔案之間,沒有檔名的占位符;需要的話請自己把檔名打在分隔文字裡,或先在每個檔案開頭加一行標題再合併。在分隔文字欄輸入 \n 會變成換行;第一個檔案前與最後一個檔案後都不會加分隔文字。
為什麼預覽沒有顯示到合併內容的結尾?
頁面上的預覽只顯示前 20,000 個字元。下載的 merged-text.txt 一定是完整的合併內容,大量合併時請以檔案為準而不是預覽。
本站相關工具
- 工時表生成器 — 計算每日與每週工時,並匯出可列印工時表
- 行事曆事件 QR Code — 為行事曆事件建立 QR Code 與 ICS 檔案
- 檔案分塊合併工具 — 將編號分塊重新合併成單一檔案
延伸閱讀: 本地瀏覽器工具如何保護你的檔案
以上步驟全部在這個頁面內完成,文字檔案合併器 不需要註冊、不上傳檔案、也不經過伺服器,關閉分頁後不會留下任何資料。