iLoveMD About
100% in your browser

Merge files into one Markdown

Drop in several text files, put them in order, and get a single Markdown document, ideal for assembling context to paste into an LLM. Everything runs in your browser; nothing is uploaded.

  • Always free
  • No uploads
  • No sign-up
  • No tracking

Merging Markdown files combines several documents into one Markdown file in the order you choose. iLoveMD does it entirely in your browser: drop multiple .md, .txt, or .csv files, reorder them by dragging, and download a single merged .md, with a live token count so you know how large the result is. CSV files become Markdown tables and the rest is joined as-is, each file under a heading made from its name. Because the merge happens locally in JavaScript, your files are never uploaded to a server, it works offline once the page has loaded, and there is no sign-up or tracking. It is a quick way to assemble notes, chapters, or documentation into one file for sharing, archiving, or pasting into an LLM prompt.

← All conversion tools

Merge to Markdown .md, .txt, .csv, .srt, .vtt
No files selected

Files

Merged Markdown

Export Your Results

Merge to Markdown Docs

Drop in several text files, put them in the order you want, and get one Markdown document back. It is built for assembling context for an LLM: gather a handful of notes, transcripts, and data files into a single file you can paste into a chat or a prompt. Everything runs in your browser, nothing is uploaded.

Adding and ordering files

Three ways in, all local:

  • Add files, pick one or many text files.
  • Add folder, pick a folder and every supported file inside is queued (subfolders included).
  • Drag & drop, drop files or a folder onto the page.

Each file becomes a row. Drag a row, or use the up and down arrows, to set the order; the merged document follows that order top to bottom. Remove a row with the × button.

Tip: limits are 50 files, 5 MB per file, and 50 MB in total, enough for a sizable context bundle without freezing the tab.

Supported formats input

This is a text-merge tool. It accepts:

  • .md / .markdown / .txt, passed through as-is.
  • .csv, converted to a Markdown table.
  • .srt / .vtt, converted to a clean transcript.

The CSV and subtitle conversions use the same engines as the dedicated CSV to Markdown and SRT/VTT to Markdown tools. PDF, DOCX, Excel, and notebook files are not part of this tool; convert those first with their own converter, then merge the Markdown.

Headings, separators, and output output

By default each file is introduced with its name as an ## heading and files are separated by a horizontal rule. You can switch headings off, use a plain blank line as the separator, or include the file's full folder path in the heading (handy after a folder drop).

The merged Markdown is shown in a live preview, rendered through iLoveMD's sanitized engine so it is safe even for files you did not write. Use Copy to put it on your clipboard, or Download .md to save it as merged.md. A running word, character, and GPT-4o token count helps you see how much context window the result will use.

A worked example: three files in, one document out

Say you are preparing a briefing from three sources: notes.md (meeting notes), metrics.csv (a small spreadsheet export), and interview.srt (subtitles from a recorded call). Drop all three in, drag them into that order, and the merged document comes out as:

## notes.md

(your notes, unchanged)

---

## metrics.csv

| Month | Signups | Churn |
| ----- | ------- | ----- |
| May   | 214     | 3     |

---

## interview.srt

(a clean transcript, timestamps removed)

The CSV became a real Markdown table and the subtitles became readable prose, so the single file reads like one coherent document instead of three pasted fragments.

Heading levels when files collide

The classic merge problem: each source file often opens with its own # top-level heading, so a naive concatenation produces a document with five competing titles. The default settings here are chosen to sidestep that:

  • Filenames become ## section headings, one level below a top-level title, so the merged document has a clean hierarchy even when the sources disagree.
  • Horizontal-rule separators mark where one file ends and the next begins, which keeps skimming honest.
  • Headings inside your files are passed through as written. The tool does not renumber them, so if a source file uses # internally, consider whether you want the filename headings on (they give the document its structure) or off (when each file already titles itself).

Assembling context for an AI prompt

The most common use of this tool is bundling reference material for a language-model conversation: several docs pages, a transcript, a data table, one paste. Three habits make the bundle work harder:

  • Order deliberately. Put the material the model should weight most either first or last; the middle of a long context is where detail is most often overlooked.
  • Keep the per-file headings on. When the model can see ## interview.srt, it can attribute what it quotes, and you can ask questions like "what did the interview say about pricing?"
  • Watch the token count. The running GPT-4o count below the preview is the same exact tokenizer as our Token Counter; if the bundle is oversized, trim files rather than letting the model silently lose the middle.

Transcript sources merge in cleanly: subtitle files convert on the way in, and the YouTube transcript tool produces Markdown that drops straight into the queue.

How do I merge files into one Markdown document?

1

Add your files

Use Add files / Add folder or drag-and-drop. Markdown, text, CSV, and subtitle files are all accepted. Nothing is uploaded.

2

Put them in order

Drag the rows, or use the up and down arrows, so the files line up in the order you want them merged.

3

Merge and download

Click Merge, then Copy the result or download it as a single merged.md. A token count shows how much context window it uses.

Frequently asked questions

What can I merge?

Text files: .md, .markdown, and .txt are passed through as-is, .csv becomes a Markdown table, and .srt/.vtt subtitle files become a clean transcript. PDF, DOCX, and Excel are not supported here; convert those with their own tools first.

Why merge files into one Markdown?

A single file is easy to paste into a chat or prompt as context for an LLM, and easy to archive or read. The tool shows a GPT-4o token count so you can see how much of the context window the result will use.

Can I control the order?

Yes. Each file is a row you can drag, or move with up and down arrows. The merged document follows that order from top to bottom.

Are my files uploaded?

No. Files are read and merged entirely in your browser. Nothing is sent to a server, and nothing is stored, reload the page and the queue is gone.

Is there a size limit?

Up to 50 files, 5 MB per file, and 50 MB in total. The merged output is also capped, and is truncated with a notice if it would be too large to handle smoothly.

Last updated: July 19, 2026