Markdown to HTML Converter
What is covered — and what is deliberately not
The converter handles the Markdown that makes up most real documents: ATX headings, paragraphs, bold and italic in both spellings (** and __, * and _), strikethrough, inline code and fenced code blocks, links and images, blockquotes, bullet and numbered lists, horizontal rules and GitHub-style tables with a header row. Two design decisions deserve stating plainly. Raw HTML inside your Markdown is escaped, not passed through — most full-spec processors allow embedded HTML, but a converter that injects arbitrary pasted markup into a live preview is a cross-site scripting demo waiting for an audience, so here a <b> in your source shows up as text. And the more exotic corners of the CommonMark specification — nested lists, reference-style links, setext headings, HTML blocks — are out of scope: this is a faithful converter for everyday Markdown, not a second implementation of the whole spec, and the page says so rather than silently producing odd output for documents that need the full treatment.
Where the output usually goes
The classic journey is from a Markdown-shaped place to an HTML-shaped one. A README or a set of release notes needs to become a page in a CMS that only accepts HTML. Documentation written in Markdown has to be pasted into a helpdesk system, an email template or an e-commerce product description. A developer has a Markdown draft and a static page with no build step. In each case the conversion is the same and the pitfalls are identical: the receiving system will render whatever it is given, so the escaping discipline described below is not pedantry — paste HTML whose code samples were not escaped and the page will faithfully execute your documentation as markup, swallowing the very examples you wrote it to show. Convert here, spot-check the preview against your source (the preview is the contract), then paste.
Why the code-span rule matters most
Every Markdown converter lives or dies on its escaping order. Code spans and code blocks must be lifted out before emphasis rules run — otherwise the asterisks in a line of code about multiplication turn into italics, and the < in 'a < b' becomes a phantom tag. This converter extracts code spans first and holds them aside while links and emphasis are processed, escapes everything else before any tag is generated, and only then assembles the result — the sequence that makes `a < b` in the sample above come out as safe, visible text inside a <code> element. It is the same discipline the SQL formatter on this site applies to string literals: identify the regions where the syntax does not apply before applying the syntax. Most 'the converter mangled my document' stories are, on inspection, an escaping-order story.
Frequently asked questions
How do I convert Markdown to HTML?
Paste Markdown into the top box: the HTML appears in the middle box, ready to copy, and the rendered result previews below. Headings, emphasis, code, links, images, lists, blockquotes, rules and GitHub-style tables are supported, with conversion happening live as you type and entirely in your browser. For a one-off conversion — a README into a web page, release notes into an email template, documentation into a CMS that wants HTML — this is the whole workflow. For build pipelines, the same job belongs in a full CommonMark processor (marked, remark, Pandoc) where the exotic syntax and plugin ecosystems live.
Is this full CommonMark?
No, and the page says so on purpose. It is a careful subset — the constructs that make up the overwhelming majority of real-world Markdown — implemented with correct escaping order, which matters more for everyday documents than the long tail of the specification. What is missing: nested lists, reference-style links and images, setext (underlined) headings, autolinks in angle brackets, footnotes and raw HTML passthrough (escaped by design, for safety). If your document uses those, it deserves a full processor. If it is headings, paragraphs, lists, links, code and a table — the shape of most READMEs, notes and documentation — the output here will match what the full tools produce.
Why is my raw HTML shown as text instead of rendered?
Because the converter escapes it, deliberately. A page that takes arbitrary pasted text and injects it into a live preview as markup is an XSS vulnerability with a textarea attached; escaping raw HTML is the safe default for a public converter, and it is also what many publishing pipelines do when converting untrusted Markdown. If you genuinely need HTML passthrough — trusted documents, your own templates — that is a job for a local tool under your control (Pandoc with its default settings, or your static site generator), where the trust decision is yours and the blast radius is your own machine.
How are tables converted?
GitHub-flavoured style: a header row, a separator row of dashes (the | --- | --- | line), then body rows, all pipe-delimited. The converter reads the header into <th> cells inside <thead> and the rest into <td> rows in <tbody>, and inline formatting works inside cells, so a bold value or a link in a cell converts properly. Alignment colons in the separator (:---, ---:, :---:) are accepted and ignored in this subset — the table converts, the alignment hints do not become attributes. Ragged rows convert as written; a row with fewer cells than the header produces a shorter row, which browsers render as-is.
Can I convert a whole Markdown file?
Yes, within the subset: open the file in any text editor, paste its contents in, and copy the HTML out — the box handles documents of any practical length, since the conversion is simple text processing in your browser. Two cautions for whole files. Very long documents convert fine but the preview re-renders on every keystroke, so paste once rather than editing heavily here — this is a converter, not an editor. And multi-file projects (documentation sites with cross-links and includes) are beyond any single-box tool: relative .md links are converted literally, not rewritten to .html, which is a build-system job. For the single-file case — the README, the article, the changelog — paste and copy is the entire process.
Related tools
Converter last verified in Node against a full test document: 24 November 2026. Everything is calculated in your browser — nothing you type is sent anywhere.