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 Markdown has HTML tags in it. They’re shown as text, not used, so nothing in them can run or load anything. Write that formatting in Markdown instead.
Preview
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
- Paste or type Markdown, or open a .md file or drop it on the box, up to 25 MB.
- Watch the preview update after each pause in your typing.
- Choose the output: an HTML fragment to paste into a page, or a full page with a title.
- 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.