Markdown / HTML Converter
Convert Markdown to HTML with a linked table of contents, or turn HTML into Markdown or plain text. Copy or download the result in your browser.
Still loading. If the tool doesn’t appear, reload this page.
About this tool
Markdown / HTML Converter
Convert Markdown into HTML and strip HTML back to text.
The Markdown / HTML Converter turns Markdown into HTML and takes HTML back to Markdown or plain text, entirely in your browser. The Markdown side covers the CommonMark constructs people actually type — ATX headings, paragraphs, hard line breaks, emphasis, inline and fenced code, links, images, blockquotes, ordered and unordered lists and thematic breaks — plus the GitHub Flavored Markdown extensions for tables and strikethrough. Text is HTML-escaped by default and only http, https, mailto, tel and relative URLs are emitted, so a pasted snippet cannot inject markup or a javascript: link into your page.
How to use Markdown / HTML Converter
Paste your text into the Input box and choose a Direction: Markdown → HTML, HTML → Markdown, or HTML → plain text.
For Markdown to HTML, select Add linked table of contents if you want a heading index in the output.
Copy the result or download it as HTML, Markdown or plain text. Reset restores the sample release notes.
Why use Markdown / HTML Converter
Escaped by default
Angle brackets and quotes in your text stay text; raw HTML is opt-in with one checkbox.
Linked table of contents
Build links to Markdown headings with unique generated IDs, including repeated titles.
Download your conversion
Save the current result as an HTML, Markdown or plain-text file.
Common use cases
- Paste a README and get HTML you can drop straight into a CMS field or an email template.
- Convert a block of CMS-generated HTML back into Markdown for a docs repository.
- Strip tags from a scraped page to get clean plain text with a word count and reading time.
Frequently asked questions
Can I add a linked table of contents when converting Markdown to HTML?
Yes. Choose Markdown to HTML and select Add linked table of contents. The result starts with links to the Markdown headings. Repeated titles receive distinct IDs, and both Copy result and Download result include the links.
Link to answerDoes this support GitHub Flavored Markdown tables?
Yes. A header row followed by a divider row of dashes becomes a full <table> with <thead> and <tbody>, and the reverse direction rebuilds the pipe-and-dash syntax. Strikethrough with ~~double tildes~~ is supported too.
Link to answerIs my document uploaded to a server?
No. Both directions are plain JavaScript running in the page, with no network request, so drafts and internal documentation stay on your machine.
Link to answerWhy was my HTML in the Markdown escaped?
Because raw HTML is off by default: `<div>` comes out as <div> so pasted content cannot inject markup. Tick "Allow raw HTML in the Markdown" to pass tags straight through, which is what CommonMark does by default.
Link to answerWhat Markdown features are not supported?
Reference-style links (`[text][ref]` with a definition elsewhere), nested blockquotes, nested lists beyond one level, footnotes and setext headings written with underlines of === or ---. Everything else in the list above converts both ways.
Link to answerEmbed this tool on your site
Add the Markdown / HTML Converter widget to your blog or website — free, responsive, no signup. Just keep the “Widget by AltFTool” credit link visible.
<iframe src="https://www.altftool.com/embed/widget/markdown-html-converter"
title="Markdown / HTML Converter — free AltFTool widget"
width="100%" height="640" style="border:0;border-radius:12px;overflow:hidden"
loading="lazy" referrerpolicy="no-referrer-when-downgrade" allow="clipboard-write"></iframe>
<p style="font-size:12px;margin:4px 0 0">Widget by <a href="https://www.altftool.com/tools/all/markdown-html-converter?utm_source=embed&utm_medium=widget" rel="nofollow">AltFTool — free online tools</a></p>