Skip to content
toolgrid

No tool found. Try another word.

Markdown to HTML Converter

Convert Markdown to clean HTML with a live preview: headings, lists, links, images, code blocks and GitHub-style tables. Copy the HTML or download a full page.

Preview

Runs in your browser. What you enter is kept for 30 days to improve Toolgrid, then deleted.

How to use the Markdown to HTML Converter

  1. 1 Write or paste your Markdown.
  2. 2 Check the preview and choose whether single line breaks become <br>.
  3. 3 Copy the HTML, or download it as a complete document.

About the Markdown to HTML Converter

Markdown is a light way to write formatted text with plain characters: # for headings, * or - for lists, **bold**, *italic*, [links](url) and backticks for code. README files, documentation, notes apps, forums and static site generators all use it, but the web needs HTML.

The converter uses marked with GitHub Flavored Markdown, so tables, task lists (- [ ] and - [x]), strikethrough with ~~ and automatic links work as on GitHub. Raw HTML inside your Markdown is passed through. The preview is shown in a sandboxed frame that can't run scripts, so you can safely look at Markdown from elsewhere.

Choose "full HTML document" to get a complete page with <!DOCTYPE html>, <head> and <body>, ready to save as an .html file. Note that the output isn't sanitized: if you show Markdown from untrusted users on your own site, run the HTML through a sanitizer such as DOMPurify first.

Frequently asked questions

Which Markdown flavor is used?

CommonMark with the GitHub Flavored Markdown extensions: tables, task lists, strikethrough and autolinks.

Why doesn't a single line break show up?

In Markdown a single line break is just a space; leave an empty line for a new paragraph. Turn on "line breaks as <br>" for GitHub-comment-style breaks.

Can I add CSS?

The HTML has no styles of its own, so it takes the style of the page you put it in. The full document option gives a bare page you can add a <style> to.

Is the HTML safe to put on my website?

It is exactly what your Markdown describes, including any raw HTML. For content from other people, sanitize it before showing it.