iLoveMD
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

← 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.

How to 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.