Markdown Preview
Write Markdown and see it rendered live beside you, then copy the HTML or download the source.
Loading tool…
Everything runs in your browser. Nothing is uploaded, nothing is stored on a server, and closing the tab clears it.
What the Markdown Preview does
The markdown preview on this page will write Markdown and see it rendered live beside you, then copy the HTML or download the source. Everything runs inside this page, so the work happens on your own device rather than on a server. It is most often used for checking how a README or a documentation page will render. If you want to cross-check the result, there is another markdown preview on FreeToolsWorld.org.
How to use it
- Type or paste Markdown on the left.
- The preview updates as you type.
- Copy the HTML when you need it for a CMS or an email.
- Download the .md file to keep the source.
How it works
This covers the Markdown people actually write: headings, bold and italic, lists including nesting, links, images, inline and fenced code, blockquotes, tables, strikethrough and horizontal rules. It does not implement the full CommonMark specification — reference links, footnotes, HTML blocks and the more obscure edge cases are not handled — and the page says so rather than mangling them silently.
Raw HTML in the source is shown as text rather than rendered, which is a security decision and worth understanding. A preview that renders arbitrary HTML from its input is a cross-site scripting hole the moment someone pastes in something they were sent. Everything is escaped before any formatting is applied, and link and image URLs are restricted to schemes that cannot execute — so a `javascript:` URL in a link renders as plain text instead of becoming a trap.
The reading-time estimate uses 225 words per minute, which is a reasonable average for adults reading prose on screen. It is a rough figure by nature: technical material with code is read considerably more slowly, and a skim-reader goes several times faster. Treat it as a comparison between documents rather than a prediction about any particular reader.
The HTML export is clean and unstyled — semantic tags with no classes and no inline styles — which is what you want for pasting into a CMS, an email template or another system that will apply its own styling. A converter that emits styled markup gives you something to strip out before you can use it.
When to use it
- Checking how a README or a documentation page will render.
- Writing a post in Markdown and exporting the HTML for a CMS.
- Converting Markdown notes into formatted text for an email.
- Learning Markdown by seeing the result as you type.
Common mistakes to avoid
- Expecting raw HTML in the source to render. It is deliberately shown as text to avoid an injection hole.
- Relying on reference-style links or footnotes, which this subset does not implement.
- Assuming every Markdown renderer agrees. They differ considerably on edge cases such as nested list indentation.
Frequently asked questions
Which Markdown flavour is this?
A practical subset of CommonMark with tables and strikethrough from GitHub Flavoured Markdown. It covers what people write day to day and does not implement reference links, footnotes or raw HTML blocks.
Why is my HTML showing as text instead of rendering?
Deliberately. A preview that renders arbitrary HTML from its input is an XSS hole as soon as someone pastes in something they were sent, so everything is escaped before formatting is applied.
Can I style the exported HTML?
The export is intentionally plain semantic markup with no classes or inline styles, which is what you want for pasting into a system that applies its own CSS. Add your own styling at the destination.