Convert Markdown into clean HTML with a live preview and copyable code.
Tables are where people most often get stuck, because they aren't part of the original Markdown syntax. They come from GitHub Flavored Markdown, which this converter supports. Write a header row with pipes between the cells, then a separator row made of dashes (for example |---|---|), then one line per row of data.
Colons in the separator row set the alignment: :--- aligns a column left, ---: aligns it right, and :---: centres it. The output is an ordinary table element with a thead and tbody, and the alignment is written onto each cell.
If a table comes out as plain text, check that the separator row has the same number of cells as the header row. A mismatch there is the most common reason it isn't recognised.
The preview on this page is sanitised with DOMPurify, so a script hidden in the Markdown can't run here. The HTML you copy is the converter's raw output, which is what you want for your own writing. Markdown does allow inline HTML, though, so if you're converting text written by other people, such as comments or form submissions, sanitise it on your own site too before displaying it.
You get plain, semantic HTML with no classes or inline styles: h1 to h6 for headings, p, ul and ol, blockquote, code and pre, a and img. That makes it easy to paste into a CMS, an email template or a static site and let your own CSS do the styling. Fenced code blocks keep their language as a class (for example language-js), which syntax highlighters like Prism and highlight.js pick up.
Yes, including tables, strikethrough with double tildes, task lists and automatic links. It uses the marked library with GFM switched on.
In standard Markdown a single line break inside a paragraph is ignored. End the line with two spaces to force a break, or leave a blank line to start a new paragraph.
Yes, our HTML to Markdown converter does the opposite direction.
No. The conversion runs in your browser and nothing is sent to a server, so it's fine for private documents.
OneClickly is a set of 119 free tools for PDFs, images, text, everyday math and code. They run in your browser, so the files and text you work with stay on your device.