Merge Text Files — Combine Text and Code Files on Mac
Merge Text Files app icon Merge Text Files · For Mac

Many files in. One file out.

Combine any number of text files into one, in exactly the order you want, with a header above every file. Or turn a whole project into one clean prompt for your AI chat.

Requires macOS 14 or later · No account, no tracking. Your files never leave your Mac.

Merge Text Files with eleven novel chapters in the file list, the merged text in the preview with a header above each chapter, and the options panel on the right.
AI Prompt

Give an AI chat your whole project at once.

Switch to AI Prompt and every file gets its own heading and Markdown code block, with the language picked up from its extension. A live token estimate tells you whether it fits before you paste.

  • Paths stay relative to the folder you dropped, so the structure is clear
  • Copy everything with ⇧⌘C and paste it into any chat
A small web app merged in AI Prompt format: each file under a File heading inside a JavaScript code block, with the line, word, character and token counts below.
Headers

Always know which file is which.

Put each file's name on its own line above its contents, as a banner, a Markdown heading or a code comment. Or build your own header from the file's name, path, number and the date.

  • Separate files with nothing, a new line, a blank line or your own text
  • Clean up as you go: line endings, trailing spaces and a final new line
Six source files merged with a code-comment header above each one, and the Headers option set to a double-slash comment in the options panel.
Your order

In exactly the order you want.

Drop in a few files or a whole folder. Sort by name in proper number order, so Chapter 2 comes before Chapter 10, or by date. Drag to reorder, and uncheck any file to leave it out without removing it.

  • Folders add every text file inside, even a Dockerfile, Makefile or LICENSE
  • Your file list and settings are waiting when you come back
Eleven chapters listed in number order, with Chapter 4 unchecked and dimmed so it is left out of the merge.
Encodings

Old files, read correctly.

The encoding of every file is detected as it's read, so a folder that mixes modern UTF-8 with older Windows or Greek documents merges cleanly, without a single setting to change.

  • No more question marks where accented or Greek letters should be
  • Save as UTF-8, UTF-16, ISO-8859-1, Windows-1252 or Windows-1253
Two Greek meeting notes merged into one, one saved as UTF-8 and the other in the older Windows-1253 encoding, both shown correctly.
Everything else

A native Mac app for joining text.

Fast and light, at home on your Mac in light and dark mode, and private by design.

Live preview
Watch the merge build as you go, with a divider where each file starts.
Find in the merge
⌘F highlights every match, and ⌘G jumps to the next one.
Edit before saving
Fix something by hand in the preview. Your edits are never quietly overwritten.
Always up to date
Change a source file in another app and the preview updates by itself.
Copy or save
Copy the result in one shortcut, or save it as a text or Markdown file.
Private by design
No account and no tracking. Your files stay on your Mac.
Merge Text Files in dark mode, searching the merged chapters for the word light with every match highlighted.
Merge Text Files app icon

Stop copying and pasting.

Merge your files in seconds, exactly the way you need them.

Questions or feedback? Contact support