Modern Niche World MNW

Markdown to HTML

Paste or type Markdown and get its HTML as you write, with a live preview. Raw HTML is shown as text, and nothing leaves your device.

Paste or type Markdown, or open or drop a .md file, up to 25 MB. HTML tags in it are shown as text, never run.

Paste or type Markdown above to convert it.

Your text stays on this page: it’s converted on your device, and nothing is sent or saved.

Markdown in, clean HTML out

Markdown is the plain-text way of writing headings, lists and links with symbols such as # and *, used in README files, notes apps and many site editors. When a page or an email needs HTML instead, this tool converts it as you type, with markdown-it, an open-source converter that follows the CommonMark standard. It adds no styles or scripts of its own, so the HTML takes on the look of the page you paste it into; only table columns you align with colons get a text-align style.

How to use it

  1. Paste or type Markdown, or open a .md file or drop it on the box, up to 25 MB.
  2. Watch the preview update after each pause in your typing.
  3. Choose the output: an HTML fragment to paste into a page, or a full page with a title.
  4. Copy the HTML, or download it as an .html file.

What it understands

  • CommonMark: headings, paragraphs, bold and italic, lists, links, images, quotes, code and code blocks, and horizontal rules.
  • Tables and strikethrough, written the way GitHub writes them: rows of cells between | marks, and ~~two tildes~~ either side.
  • Typographer, if you tick it: straight quotes become curly ones, -- an en dash, --- an em dash, ... an ellipsis, and (c) ©.
  • A bare web address stays text. Write <https://example.com> or [text](https://example.com) to make a link.

Why raw HTML shows as text

Markdown lets you mix in HTML tags, but here any tag you type, such as <b> or <script>, is shown as text instead of used. That way nothing pasted from elsewhere can run or load anything on this page, and the HTML you copy holds only what your Markdown asks for. A note says when there’s a tag in your text.

Good to know

  • The preview loads nothing from the web. Pictures at web addresses show as their description; they’re in the HTML for your page to load.
  • Links that would run code, such as javascript:, aren’t made into links at all.
  • Your text stays on this page. It isn’t sent, logged or saved.
  • Starting from a PDF? PDF to Markdown turns a PDF into Markdown first; this page turns Markdown into HTML. Going the other way, HTML to Markdown turns HTML back into Markdown.

Frequently asked questions

Which Markdown does it follow?
CommonMark, the shared standard most Markdown apps follow, plus tables and strikethrough written the way GitHub writes them. Extras that some apps add, such as task lists, footnotes, emoji codes or math, aren’t converted and show as you typed them.
What’s the difference between a fragment and a full page?
A fragment is only the converted content, ready to paste into a page or an editor that has its own head and styles. A full page adds what a stand-alone .html file needs: a doctype, a line saying it’s UTF-8 and a title, taken from your first heading.
Why didn’t my web address become a link?
Automatic links are off, so text such as example.com stays text and nothing becomes a link you didn’t mean. Write it as a Markdown link, [the link text](https://example.com), or put the whole address, https:// included, between angle brackets.
Is my Markdown sent anywhere?
No. It’s converted by this page, on your device, and nothing is sent, logged or saved. The converter itself is loaded from this site the first time you type.