Skip to content

Markdown to HTML Converter

Convert Markdown to HTML and back, with a live preview.

Runs in your browser

Paste Markdown to get HTML plus a live preview. Switch the tab to convert HTML back to Markdown. Conversion runs entirely in your browser.

Hello

This is a markdown sample with italics, code, and a link.

  • item one
  • item two
A blockquote.

How to use it

  1. Pick a direction

    Markdown to HTML or HTML to Markdown.

  2. Paste your source

    Sample is pre-filled for the active direction.

  3. Read the output and preview

    HTML output appears in the right pane; for Markdown -> HTML you also get a styled live preview below.

What is it?

A Markdown-to-HTML converter takes the plain-text Markdown syntax (headings prefixed with #, bold with **, lists with -, etc.) and produces the corresponding HTML elements. The reverse is best-effort - HTML has more expressive power than Markdown, so any HTML that doesn't map to the Markdown subset is left alone.

When to use it

Drafting blog posts in Markdown and pasting the HTML into a CMS that lacks Markdown support. Converting a README into a webpage. Round-tripping content between a static-site generator (Markdown source) and a WYSIWYG editor (HTML source).

Common mistakes

Expecting GitHub-flavoured-Markdown extras (tables, task lists, ~~strikethrough~~) - they're not supported here. Pasting HTML with custom classes or attributes and expecting them to survive a round-trip - they get lost. And treating the converter as an HTML sanitiser - it isn't; do not paste untrusted HTML and embed the output in a page without escaping.

FAQ

Which Markdown flavour does this support?
A CommonMark subset: headings, bold, italic, inline code, links, images, ordered and unordered lists, blockquotes, fenced code blocks, horizontal rules. Tables, nested lists and raw HTML pass-through are out of scope.

More in this category