Markdown to HTML Converter with Live Preview
- This tool runs entirely in your browser. Nothing you enter or upload is sent to a server.
Markdown
Preview
The formatted preview appears here.
About this tool
Write or paste Markdown on the left and see it rendered on the right as you type. Switch to HTML code to get the generated markup to copy or download. The conversion runs in your browser, so your text is never uploaded.
GitHub-flavoured Markdown is supported: headings, bold and italic, links and images, lists, blockquotes, horizontal rules, tables, task lists, strikethrough, inline code, fenced code blocks and automatic links for bare URLs. Turn on “Line breaks become <br>” to treat single line breaks as hard breaks, as GitHub comments do; otherwise lines in the same paragraph are joined. There is no footnote, maths or syntax-highlighting support: a fenced block marked js only gets class="language-js" on its code tag.
For example, ## Features, a list item - **Fast** and *free* and a line Read the [docs](https://example.com) become <h2>Features</h2>, <ul><li><strong>Fast</strong> and <em>free</em></li></ul> and <p>Read the <a href="https://example.com">docs</a></p>. A task item - [x] Done becomes a list item with a ticked, disabled checkbox, ~~old~~ becomes <del>old</del>, and a pipe table becomes a <table> with <thead> and <tbody>. Raw HTML in the Markdown is passed through unchanged.
To use it: paste or type your Markdown (or press Sample), check the preview, switch to HTML code, then Copy or Download document.html. The output is a fragment — content only, with no <html>, <head> or stylesheet — so paste it into your CMS’s HTML or code view, not the visual editor: a “Custom HTML” block in WordPress, the HTML view in Blogger, or a raw HTML block elsewhere. Your site’s theme then styles it. The preview is sanitised, so Markdown containing scripts or unsafe HTML cannot run anything in your browser; the HTML code tab, Copy and Download give the raw conversion, including any inline HTML you wrote. To go the other way, use HTML to Markdown; to build a table without counting pipes, use the Markdown Table Generator.
Frequently asked questions
Which Markdown flavour is used?
GitHub-flavoured Markdown (GFM), the variant used on GitHub, GitLab and most documentation sites.
Is the generated HTML safe to put on my site?
The preview is sanitised, but the HTML code tab shows the raw conversion of your input. If your Markdown came from untrusted users, sanitise the HTML on your server before publishing it.
How do I paste the HTML into WordPress or another CMS?
Switch to HTML code, press Copy, then paste into the HTML or code view of your editor — in WordPress, a “Custom HTML” block or “Edit as HTML” on a block. The visual editor would show the tags as plain text.
Why do my line breaks disappear?
Standard Markdown joins lines within a paragraph; a blank line starts a new one. Tick “Line breaks become <br>” to turn every single line break into a <br> tag.
Can I convert HTML back to Markdown?
Yes — use the HTML to Markdown converter.