Markdown to HTML converter: preview, HTML code, download
Use this Markdown to HTML converter to paste text with Markdown syntax and instantly see the preview and the finished HTML code. Headings, lists, tables, code, links and images are supported. Embedded HTML is never executed but shown as plain text.
Source: CommonMark Spec 0.31 (reference for blocks, lists, emphasis, links). Updated: .
How it is calculated
Markdown is a simple way to write formatted text: # for headings, **bold**, - item for lists. This tool converts it to HTML that you can paste into web pages, newsletters, shop descriptions or a CMS.
How to convert Markdown to HTML
- Paste your Markdown text into the field or use the sample text.
- Check the preview: this is how the text looks as a web page.
- Copy the HTML code or download it. With “Complete HTML document” you get a ready page whose title comes from the first heading.
What is supported
Headings (with # and with underlines), paragraphs, emphasis, bold, code inline and in blocks with a language label, quotes, nested lists, horizontal rules, links (including references), images and autolinks. The GitHub extensions add tables with alignment, strikethrough, task lists and automatic links. The conversion follows CommonMark but does not cover every corner case.
Safety and limits
- No script in the result: raw HTML such as
<script>in the Markdown is escaped as text. Links usingjavascript:ordata:are neutralised. You can paste the result without worry. - No HTML in Markdown: if you need your own HTML tags in the text, that intentionally does not work here.
- Not included: footnotes, definition lists, formulas and emoji shortcodes like :smile:.
- Other programs: another Markdown dialect may interpret corner cases (such as nested lists with unusual indentation) differently.
Your text stays in your browser and is neither sent nor stored.
Frequently asked questions
How do I convert Markdown to HTML?
Paste the Markdown text into the field and the HTML code appears immediately. You can copy it or download it as a file. The preview shows what the result looks like.
Which Markdown syntax is supported?
CommonMark with the GitHub extensions: headings, lists, quotes, code, links, images, tables, strikethrough and task lists. Footnotes and formulas are not included.
Is the HTML safe?
Yes. Embedded HTML and scripts are not passed through but escaped as text, and dangerous link targets are removed. For text from others, still check where links lead.
Can I use my own HTML inside Markdown?
No, that is deliberately excluded so the result stays safe. Add your own tags to the HTML code after the conversion.
How do I get tables and task lists?
Keep the GitHub extensions switched on. Write tables with vertical bars and a separator row of hyphens, and tasks as “- [ ] open” and “- [x] done”.
Is my text stored?
No. The conversion runs in your browser; the text is not sent, not stored and not written to the address bar.
Sources and legal basis
- CommonMark Spec 0.31 (reference for blocks, lists, emphasis, links)
- GitHub Flavored Markdown Spec (Tabellen, Durchgestrichen, Aufgabenlisten, Autolinks)
- WHATWG HTML Standard – Named character references (Zeichenverweise)
- OWASP Cross Site Scripting Prevention Cheat Sheet (Ausgabe-Maskierung, javascript:-Links)
As of: · Editorial policy
Related tools
- PDF to Markdown ConverterConvert PDF to Markdown: headings, paragraphs, lists and links as .md – for Obsidian, GitHub, notes or AI chats like ChatGPT and Claude. OCR for scans.
- JSON formatter, validator and minifierValidate JSON against RFC 8259 with the exact line, column and a plain-English explanation. Beautify or minify, sort keys, copy. Runs locally in your browser.
- SQL formatter (format SQL online)SQL formatter for readable queries: uppercase keywords, indentation, columns and conditions on separate lines. Also minifies SQL. Runs locally in your browser.
- CSV to JSON converter (and JSON to CSV)Convert CSV to JSON or JSON to CSV online: delimiter auto-detected, numbers and booleans typed, quoted fields handled. Runs in your browser, nothing uploaded.
- What is my IP address?What is my IP? See your public IPv4 or IPv6 address at once, plus approximate location, internet provider and browser details. Free, never stored.
- HTML to Image ConverterHTML to image: paste your code, choose width and resolution and save a PNG, JPG or WebP – also transparent. Free, no upload, runs in your browser.
- DOCX to TXT converterConvert DOCX to TXT: choose a Word file and copy or save the content as plain text or Markdown. Free, no upload, right in your browser.
- HTML to PDF converterConvert HTML to PDF: choose an HTML file or paste code, set the page size and save it as a PDF. Free, no upload, right in your browser.
- HTML Entities Encode and DecodeHTML entities encode and decode: convert special characters into entities or back into text, named, decimal or hexadecimal, locally in your browser.