Markdown to HTML
Convert Markdown to HTML or HTML to Markdown, with a live preview.
How it works
- 1Choose the direction.
- 2Paste your Markdown or HTML.
- 3Copy or download the result and check the preview.
Features
- GitHub-flavoured Markdown: tables, fenced code, task lists and strikethrough.
- HTML to Markdown with # headings, - lists and ``` code blocks.
- Live, sandboxed preview that never runs scripts.
- Download as .html or .md.
- Private: runs in your browser.
Frequently asked questions
Is the HTML output safe to publish?
It is a faithful conversion. If the Markdown came from someone else, run it through your site's HTML sanitiser, because Markdown may contain raw HTML.
Which libraries are used?
marked for Markdown to HTML and turndown for HTML to Markdown, both open source.
Are tables converted back to Markdown?
Tables are kept as HTML inside the Markdown, which every Markdown renderer accepts.
Related tools
HTML FormatterBeautify HTML with consistent indentation using Prettier.Lorem Ipsum GeneratorGenerate placeholder paragraphs, sentences or words, optionally as HTML.Slug GeneratorTurn titles into clean URL slugs, with accents and Cyrillic transliterated.Case ConverterChange text to UPPER, lower, Title, Sentence case, camelCase, snake_case, kebab-case and more.