Split a Markdown file into one file per section
Drop a long .md file. Get one file per heading plus an index.md, with links between sections fixed.
- Free, no sign-up
- Nothing uploaded
- .md files in a .zip
Drop a Markdown file here
No file handy? Try one:
How it works
- Drop the file. Any Markdown file: a README, a handbook, a design doc, a book. Or paste the text.
- It is cut at a heading level. Auto uses ## when there are at least two, otherwise # (chapters), otherwise ###. Each section becomes a file named after its heading, such as
time-off.md, and its heading becomes a top-level # heading. Text before the first section stays in index.md. - Links are fixed. A link to a heading now in another file points at that file, and relative image paths get
../because the files sit one folder deeper. Headings inside code blocks are ignored. - Take it with you. Download a zip with a folder named after your file, holding index.md and every section. The page first checks that the files join back into your original, line for line.
Questions
- Which heading level does it split at?
- Auto uses ## when the file has at least two ## headings, otherwise # (chapters), otherwise ###. Change it under Split at. A # heading that appears once at the top is treated as the document title and stays in index.md.
- What happens to links between sections?
- A link such as [Expenses](#expenses) is changed to point at the file that now holds that heading, for example ./expenses.md. Relative paths to images and other files get ../ in front, because the files sit one folder deeper than the original. Links to headings that never existed are listed and left alone.
- Is my document uploaded?
- No. The file is read and split inside your browser tab. Only the optional AI descriptions send anything: each file's name, heading and the start of its text, and only when you press its button.
- Can I put the files back together?
- Yes. The page checks that the files join back into your original line for line before it offers the download. Join the section files in the order index.md lists them, after the text at the top of index.md.
- Why split a Markdown file at all?
- Long single files are hard to review, slow to load in an editor and too big to hand to an AI assistant in one go. One file per section lets people and tools open only the part they need, with index.md as the map.