Markdown to HTML Converter
CV-20Paste Markdown and get the HTML as you type. It follows GitHub Flavored Markdown, so tables, task lists, strikethrough and autolinks work. The result is a fragment, not a full page.
Runs in your browser. Nothing is uploaded.
Markdown
HTML
How to use it
- Paste your Markdown into the input box, or open a .md file.
- Read the HTML in the output box. It updates as you type.
- Tick Escape raw HTML in the Markdown if any HTML in your text should show as text instead of running.
- Tick Single line breaks become <br> if a new line in your text should be a line break.
- Copy the HTML or download it as a .html file.
What gets converted
Headings, emphasis, links, images, block quotes, code spans, fenced code blocks and lists become the matching HTML tags. The GitHub extensions are on, so pipe tables become <table>, - [x] becomes a disabled checkbox, ~~text~~ becomes <del> and bare web addresses become links. Footnotes are not part of this flavor, and headings do not get id attributes. The output is only the body markup, with no <html> or <head> around it.
Raw HTML passes through
Markdown allows HTML inside the text, and by default it is copied to the output exactly as written. That includes <script> tags and links that start with javascript:. The converter does not clean or sanitize anything. If the Markdown comes from someone else, do not put the output in a page without sanitizing it first. Tick Escape raw HTML to turn tags in the text into visible text; links are still left as they are.
Line breaks and paragraphs
A blank line starts a new paragraph. A single line break inside a paragraph stays a space in the HTML, which is how Markdown is defined. Tick Single line breaks become <br> to follow the comment style of GitHub, where each new line is a break. Two spaces at the end of a line always make a <br>.
Questions people ask
How do I convert Markdown to HTML?
Paste the Markdown into the input box and the HTML appears in the output box. Copy it or download it as a .html file. The conversion runs in your browser with the marked library, so your text stays on your device.
Does it support tables and task lists?
Yes. GitHub Flavored Markdown is on, so pipe tables, task lists with - [ ] and - [x], strikethrough with ~~ and automatic links all convert. Footnotes and definition lists are not supported.
Is the HTML output safe to put on a web page?
Not for untrusted input. Raw HTML in the Markdown is copied through, including scripts, and javascript: links are not removed. Escaping raw HTML helps with tags, but you should still sanitize anything that came from other people.
How do I show HTML tags as text instead of rendering them?
Tick Escape raw HTML in the Markdown. Tags in your text come out as <b> and similar, so they display literally. To show code in a block, put it in a fenced code block instead.
Why is my line break ignored?
In Markdown a single new line inside a paragraph is treated as a space. End the line with two spaces, leave a blank line to start a new paragraph, or tick Single line breaks become <br>.
Does it make a full HTML page?
No. You get the HTML for the content only: paragraphs, headings, lists and so on. Wrap it in your own <html>, <head> and <body>, or paste it into a template or CMS.
About this tool
Uses the marked library with GitHub Flavored Markdown on: tables, task lists, strikethrough and autolinks. The output is an HTML fragment, not a full page. It is not sanitized: raw HTML inside the Markdown passes through as written, and so do links such as javascript:. Tick "Escape raw HTML" to show tags as text instead; that does not rewrite link addresses. Do not put output made from untrusted Markdown into a web page without cleaning it first. Footnotes and heading anchors are not generated.