Markdown Merge
Free online tool to merge multiple Markdown files into one document. Drag-and-drop to reorder files, add separators between sections, automatically shift heading levels to prevent conflicts, and consolidate YAML front matter. Export the merged result as Markdown or PDF. Ideal for combining documentation chapters, assembling multi-file projects, and building long-form content from modular Markdown files.
Drag and drop Markdown files, or click to select
Upload multiple .md files to merge them into one document
Frequently Asked Questions
How do I merge multiple Markdown files?
Upload your .md files (up to 20), drag-and-drop to set the order, configure merge options like separators and heading level shifts, then download the merged result as a single Markdown file or PDF.
Can I control the order of merged files?
Yes. After uploading, you can drag and drop files to reorder them. The merged output follows your specified order exactly.
What happens to YAML front matter when merging?
You can choose to consolidate front matter from all files into a single YAML block in the merged output. When consolidating, later files' values override earlier ones for duplicate keys.
Can I add separators between merged files?
Yes. Choose between no separator, a horizontal rule (---), or a page break between each file. You can also optionally insert each filename as an H1 header.
What output formats are available?
You can download the merged result as a Markdown (.md) file for instant download, or as a PDF which is processed through our full rendering pipeline with Mermaid, LaTeX, and syntax highlighting support.
Is there a limit on the number of files?
You can merge up to 20 Markdown files at once. Small files are processed instantly in your browser; larger batches are handled server-side.