All tools run in your browser — your files never leave your device.
All tools154

Utilities & Converters

Markdown to HTML Converter

Markdown to HTML and back, with a live preview.

What it does. Markdown converts to HTML unambiguously — that is what it was designed for. Converting HTML back to Markdown is lossy, because HTML can express layout and attributes that Markdown has no syntax for, so anything without a Markdown equivalent is either dropped or left as raw HTML.
Runs in your browserNothing uploadsNo signupWorks offline

How to use Markdown to HTML Converter

  1. Paste Markdown on the left or HTML on the right.
  2. Watch the live preview as you type.
  3. Copy whichever side you need.

Which Markdown

There is no single Markdown. The original 2004 implementation left many cases undefined, and CommonMark was created to settle them.

Tables, task lists, strikethrough and autolinking come from GitHub Flavored Markdown, which is a superset. They are widely supported and are not core Markdown, so a strict CommonMark renderer may not handle them.

This converter supports the GFM additions because that is what people actually write. If your target renderer is strict CommonMark, tables are the feature most likely to fail.

What is lost going back to Markdown

What is lost going back to Markdown
HTMLMarkdown result
class and id attributesDropped
Inline stylesDropped
div and spanDropped or kept as raw HTML
Tables with colspanCannot be expressed
Nested structuresOften flattened
Definition listsNo syntax — kept as HTML

Markdown allows raw HTML, so anything inexpressible can be preserved verbatim. That keeps the content but produces a document that is only nominally Markdown.

The line-break rule

A single newline does not create a line break. Two consecutive lines render as one paragraph, because Markdown treats them as continuing prose — which is what you want when an editor wraps text.

To force a break, end the line with two spaces, or leave a blank line for a new paragraph.

Two trailing spaces are invisible and many editors strip them on save, which is why the fix seems arbitrary. Where a real line break matters — an address block, a poem — a blank line or an explicit <br> is more robust.

Frequently asked questions

Are Markdown tables standard?

No — they come from GitHub Flavored Markdown rather than CommonMark, along with task lists and strikethrough. Most renderers support them, but a strict CommonMark implementation may not.

Why does my line break not work?

A single newline does not create one. Markdown joins consecutive lines into a paragraph so editor wrapping does not affect output. End the line with two spaces, or leave a blank line.

Is HTML to Markdown lossy?

Yes. Classes, ids, inline styles and layout elements have no Markdown equivalent and are dropped or kept as raw HTML. Tables with colspan cannot be expressed at all.

Can I put HTML inside Markdown?

Yes — Markdown permits raw HTML, which is how anything inexpressible gets preserved. The result is a document that is only nominally Markdown.

Which Markdown flavour should I write?

CommonMark plus the GFM additions, which is what almost every platform accepts. Avoid relying on quirks of the original 2004 implementation, which left many cases undefined.