Skip to content
EVOA Toolbox

Markdown to HTML

Convert Markdown (GitHub-flavoured) to clean HTML with a live preview. Copy or download the result, entirely in your browser.

Processed locally in your browser. Your text is not uploaded.

Loading tool…

What this tool does

Paste Markdown and get HTML immediately. The converter supports GitHub-flavoured Markdown (GFM): tables, task lists, strikethrough, fenced code blocks and autolinks, plus the classic headings, emphasis, lists, quotes and links. A live preview on the right shows how the document will look, and a second tab shows the raw HTML so you can copy exactly what you need.

Typical uses are turning README or documentation drafts into HTML for a CMS or e-mail template, producing a quick standalone .html page from notes, or checking how a table or code block will render before you publish it. Options let you treat single line breaks as <br>, switch GFM off for strict classic Markdown, and wrap the output in a complete HTML document with minimal styling.

Conversion is done by the marked library inside your browser. The preview is deliberately locked down: the HTML is passed through an allow-list sanitizer and rendered in a sandboxed frame that cannot run scripts, submit forms or load remote images. The exported HTML is only sanitized when the sanitize toggle is on, which is the default.

How to use it

  1. 1Paste or type Markdown in the left box, or press Example to load a sample.
  2. 2Watch the live preview update, or switch to the HTML tab to see the markup.
  3. 3Choose options: GitHub-flavoured Markdown, line breaks, sanitized export and full-document wrapping.
  4. 4Press Copy to put the HTML on the clipboard, or Download to save a .html file.

Supported formats

Input: Markdown text (CommonMark with GitHub-flavoured extensions). Output: an HTML fragment or a complete .html document.

Privacy

Your Markdown is converted on your device. Nothing is uploaded, and the preview frame is sandboxed so even hostile Markdown cannot run scripts or contact a server.

Limitations

  • Raw HTML inside Markdown is passed through by the converter. The exported HTML is NOT sanitized unless the sanitize toggle is on; leave it on whenever the Markdown comes from someone else.
  • The sanitizer removes scripts, iframes, forms, inline styles and event handlers, so some advanced embedded HTML will be stripped from sanitized output.
  • The preview does not load remote images (they are blocked for privacy). Images embedded as data: URIs do show; remote images will appear in your exported HTML once published.
  • Syntax highlighting, math and diagram extensions are not included; code blocks are exported with a language-xxx class for you to style.
  • Very large documents (several megabytes) can make typing feel slow because the preview re-renders on every edit.

FAQ

Is the HTML output safe to publish?

With the sanitize toggle on, scripts, iframes, event handlers, inline styles and javascript: links are removed using an allow-list. With it off, the output is exactly what the Markdown converter produced, including any raw HTML you typed. Treat unsanitized output from untrusted sources as unsafe.

Does it support tables and task lists?

Yes, when GitHub-flavoured Markdown is enabled (the default). Tables, task lists (- [x]), strikethrough (~~text~~) and autolinked URLs are all supported. Turn GFM off for strict classic Markdown.

Why do my line breaks disappear?

In standard Markdown a single newline does not create a line break; end a line with two spaces or leave a blank line. Enable the line-breaks option to turn every newline into <br>, like GitHub comments do.

Can I get a complete HTML page?

Turn on the full-document option. The output is wrapped in a doctype, head, UTF-8 meta tag and a small stylesheet so it opens correctly when saved as a .html file.

Related tools