CODDY Tool

Markdown Tool

Convert Markdown to HTML with a live preview, or pull HTML back into clean Markdown.

Turn Markdown into HTML with GitHub-flavoured behaviour — tables, task lists, fenced code blocks — and a live preview rendered in a sandbox where nothing pasted can execute. Or go the other way: paste HTML and get clean Markdown out, structure preserved and layout markup dropped.

Everything you enter stays in this browser tab. Nothing is sent to our servers, logged or stored.

Loading tool…

What Markdown Tool supports

Convert

  • Markdown → HTML
  • HTML → Markdown

About Markdown Tool

Markdown's appeal is that it reads like plain text and still carries structure — a README, a comment, a changelog entry all stay legible in their raw form. This tool renders that structure both ways: Markdown to the HTML a browser actually displays, and HTML back to Markdown for pulling formatted content — a blog post, a changelog, documentation — into a form that is comfortable to edit as text.

The preview matters more than it might seem. Rendering someone else's Markdown means rendering HTML you did not write, and a naive preview that injects that HTML straight into the page is a real cross-site-scripting opening — a stray <script> tag in pasted Markdown would simply run. This preview instead renders inside a sandboxed iframe with scripts disabled, so nothing pasted here can execute against this page no matter what it contains.

Converting the other direction, from HTML to Markdown, keeps headings, lists, links, emphasis, tables and code blocks, and deliberately drops what Markdown has no equivalent for — inline styles, layout divs, tracking attributes. That is usually exactly what you want when the goal is pulling the content out of a page, not its formatting.

How to convert Markdown and HTML

  1. Pick a direction

    Markdown to HTML, or HTML to Markdown.

  2. Paste your content

    The conversion updates as you type.

  3. Check the preview

    Markdown to HTML shows a live, sandboxed preview of the result.

  4. Copy or download

    Take the result to your clipboard or save it as a file.

Frequently asked questions

Is the preview safe if I paste HTML from an untrusted source?

Yes. The preview renders inside a sandboxed iframe with scripts disabled, so even a deliberately malicious <script> tag in the input cannot execute. This is a stronger guarantee than sanitising the HTML by hand, which is easy to get subtly wrong.

Which Markdown flavour does this use?

GitHub-flavoured Markdown — tables, task lists, strikethrough and fenced code blocks all work, which covers the overwhelming majority of Markdown written today.

Does HTML to Markdown keep my styling?

No, deliberately. Inline styles, layout divs and similar markup have no Markdown equivalent, so they are dropped. Structure — headings, lists, links, emphasis, tables, code — is what carries across.

Is anything uploaded?

No. Both conversions and the preview happen entirely in your browser.

All Developer Tools

Markdown Tool is free to use with no account, no watermark and no usage limits. Last updated 3 September 2026.