Markdown Merger: Combine Multiple MD Files Into One
Select several Markdown files and merge them into one document. Each file gets a heading with its name, and a separator of your choice goes between files.
Stop concatenating Markdown by hand
Combining Markdown files by copy and paste is slow and easy to get wrong: a file gets pasted twice, another is forgotten, and nothing says where one ends and the next begins. Our Markdown merger does it in one click. Select the files, and we produce a single document where every part is labelled with the file it came from.
Use it to assemble chapter files into a book, combine notes for an AI summarization run, or build a single-file documentation export from a multi-file repo.
What the merger does
Accepts .md, .markdown and .txt files, as many as you select
Puts a # heading with the file name above each file’s content
Inserts a separator between files: --- by default, or any text you type
Trims blank lines at the start and end of each file
Leaves everything else as written: headings, links and frontmatter are not rewritten
Runs in your browser: the files are not uploaded
The output is a single .md file ready to be fed to an AI, exported to PDF, or published as a single-page doc.
How it works
Click Select Files and pick your .md or .txt files
Keep the --- separator or type your own
Click Merge
Read the merged result, one # file-name heading per file
Download or copy the combined Markdown
Use cases
Assemble a multi-chapter book from per-chapter Markdown files
Build one big context file for AI summarization or RAG
Combine meeting notes from a week into one weekly digest
Merge per-feature docs into a single release-notes file
Concatenate scraped articles for cross-document analysis
Bundle examples and tutorials into a single reference document
Frequently asked questions
Will internal links still work?
Links are copied as they are. A link that pointed to another file still points to that file name, so check cross-file links after merging.
How are conflicting headings handled?
They are not changed. Each file keeps its own headings at their level, under the # heading with its file name.
Can I add separators between files?
Yes. The Separator field sets the line placed between files: --- by default, a horizontal rule, or any text you type.
What about frontmatter?
It is not handled separately: each file’s frontmatter stays at the top of its part, just under its file-name heading.
In what order are files merged?
In the order the browser lists them after you select them. There is no drag-to-reorder, so number your file names (01-intro.md, 02-setup.md) if the order matters.
Is there a file limit?
The tool sets none. The files are read in your browser, so the limit is your device’s memory.
Are files uploaded to a server?
No. Merging happens in your browser; only a credit check reaches our servers. Nothing is stored on our side.