Markdown → HTML

Markdown in.
Clean HTML out.

Paste it and the HTML appears as you look at it. No button, no wait, no upload.

Take a fragment for your CMS, or a full page you can open straight from your desktop.

Drop a file here.

Or pick one with the button. Or just paste with Ctrl+V. Dozens at a time is fine.

.md .markdown .txt +1 / 25 MB per file / runs in your browser, nothing uploaded

Other formats: .docx .doc DOCX → HTML · .html .htm Google Docs → HTML · .text Text → HTML · .csv .tsv CSV → table · .xlsx Excel → table · .pdf docstomd.com

Or paste it here

Output
Output
Indent
Bare URLs
Line breaks

How it works

  1. 01Paste your Markdown into the box, or drop a .md file above. Both are read by your own browser.
  2. 02It's parsed with markdown-it, then run through DOMPurify — because Markdown allows raw HTML, and Markdown you got from somewhere else is not automatically safe.
  3. 03Switch between the source and a sandboxed preview, then copy the HTML or download the .html file.

What's supported

  • CommonMark in full: headings, paragraphs, lists, links, images, blockquotes, fenced code
  • GitHub-flavoured extras: pipe tables, task list checkboxes and ~~strikethrough~~
  • Raw HTML inside your Markdown, sanitised rather than dropped
  • Bare URLs turned into links, which you can switch off
  • Fragment output with no wrapper, or a full page with charset, viewport and title

What it won't do

  • No syntax highlighting inside code blocks — you get a clean <pre><code>, style it yourself
  • Footnotes, definition lists and other non-standard extensions aren't parsed
  • Front matter at the top of the file is treated as text, not metadata
  • Scripts inside your Markdown's raw HTML are removed, not preserved
  • Other formats have their own pages: DOCX, Google Docs, plain text, CSV and Excel

Questions people ask

No. Everything happens in your browser — the parser, the sanitiser, the HTML generator. Your file never touches a server. Turn off your wifi and try it; it still works.

Going the other way?

DocsToMD is this same tool pointed in reverse — Word, PDF, Excel and HTML into Markdown. Same approach, same privacy model, opposite output.

docstomd.com