Convert HTML to clean Markdown or Markdown to HTML as you type, with GitHub tables, code languages kept, style options and a safe preview.
Initializing in your browser…
Write Markdown with a live side-by-side preview, GitHub tables, task lists and strikethrough, then copy the HTML or download .md and .html files.
Build Markdown tables in an editable grid or paste them from a spreadsheet or CSV, with column alignment, escaped pipes and neatly padded output.
Convert images between PNG, JPEG, WebP, GIF and BMP (and AVIF where your browser supports it), one at a time or in a batch, and compare how big each format makes your picture.
A product page is moving from an old CMS to a docs site written in Markdown, and the pricing section has a heading, a link, a table and a highlighted note.
HTML
<h2>Pricing</h2> <p>Plans start at <strong>$9</strong> a month. <a href="https://example.com/plans">Compare plans</a>.</p> <table><tr><th>Plan</th><th>Seats</th></tr><tr><td>Starter</td><td>1</td></tr><tr><td>Team</td><td>5</td></tr></table> <p><mark>New:</mark> annual billing.</p>
Markdown (GitHub flavour)
## Pricing Plans start at **$9** a month. [Compare plans](https://example.com/plans). | Plan | Seats | | --- | --- | | Starter | 1 | | Team | 5 | <mark>New:</mark> annual billing.
The heading, bold text and link map directly to Markdown syntax, and the table becomes a GitHub pipe table because it has a header row and no merged cells. Markdown has no highlight syntax, so with the default policy the <mark> element is kept as inline HTML, which GitHub and most static site generators display; switch the policy to text-only if the destination strips HTML. The counts under the result confirm one heading, one link, one table and one element kept as HTML.
Paste HTML and get clean Markdown as you type, or switch direction and turn Markdown into HTML. Tables become GitHub tables, code keeps its language, and anything Markdown cannot express is kept or flagged instead of silently disappearing.
Moving content between a website, a CMS and a docs repository usually means converting between HTML and Markdown. Copying the rendered text loses links and structure, and quick regex-based converters break on nested lists, attributes containing > characters or code that contains HTML. This converter reads the HTML into a proper document tree first, the same way a browser does, and writes Markdown from that tree, so nesting and inline formatting come through intact.
HTML to Markdown. Headings, paragraphs, bold and italic, links and images (with titles), ordered and unordered lists at any depth, block quotes, horizontal rules, inline code and code blocks are all converted. A code block's language class, such as class="language-javascript", becomes the info string after the opening fence. Choose GitHub Flavored Markdown to turn tables into pipe tables and <del> into ~~strikethrough~~, CommonMark for strict output without those extensions, or Basic for output with no HTML left in it at all. Elements that Markdown has no syntax for, such as <mark>, <sup> or a table cell that spans columns, follow the policy you choose: keep them as inline HTML (which most Markdown renderers display), keep only their text, or remove them, and the tool tells you what it did.
Style options. Markdown allows several spellings for the same thing, and teams usually have a preference. You can choose # headings or underlined ones, fenced or indented code blocks, the bullet character, asterisks or underscores for emphasis and bold, and inline or reference-style links. Every choice is saved in the share link, so a team can agree on one set and reuse it.
Markdown to HTML. In the other direction, Markdown is rendered with a CommonMark parser with GitHub tables, task lists and strikethrough, producing clean HTML you can paste into a template or CMS. Links whose address could run code (javascript:, vbscript: or HTML data: URLs) are not made clickable and are listed. The swap button sends the result back the other way so you can check a round trip.
Preview and privacy. The Preview view renders the converted Markdown, so you can see exactly what a reader will see. The preview is always generated from Markdown, never from the HTML you pasted, which means scripts or event handlers in pasted HTML cannot run on this page. Nothing is uploaded; conversion happens entirely in your browser.
Convert posts exported from WordPress or another CMS into Markdown files for Hugo, Jekyll, Astro or Docusaurus.
Turn an existing HTML help page into Markdown for a README or a docs repository, keeping links, code and tables.
Write in Markdown, convert to HTML, and paste the clean markup into an editor that only accepts HTML.
Strip heavy HTML down to Basic Markdown so only the text structure is left, ready for plain-text systems.
A heading, a paragraph with bold and a link, a two-column table and a <mark> highlight convert to ## Pricing, $9, [Compare plans](https://example.com/plans) and a GitHub pipe table. The <mark> element has no Markdown equivalent and is kept as inline HTML.
With Links set to Reference, every link becomes [text][1] in the text and the addresses are listed at the bottom, which keeps long URLs out of the paragraphs.
With the CommonMark flavour, <del>old price</del> cannot become ~~strikethrough~~ (that is a GitHub extension), so it follows the policy for unsupported elements instead.
Choose GitHub if the Markdown will be read on GitHub, GitLab, most static site generators or modern editors; it adds tables and strikethrough. Choose CommonMark for strict, portable Markdown. Choose Basic when the destination does not accept any HTML, since it reduces unsupported elements to their text.
Elements such as <mark>, <sup>, <details> or cells that span columns are handled by the policy under Markdown style options: keep them as HTML (the default, and most renderers display it), keep only their text, or remove them. The page lists what Markdown could not carry directly.
Yes, with the GitHub flavour. Simple tables become pipe tables with a header row. Markdown tables cannot express merged cells or block content inside cells, so such tables are kept as HTML instead of being converted incorrectly.
Yes. A class such as language-python or lang-js on the code element becomes the info string after the opening fence, so syntax highlighting keeps working after conversion.
Yes. The HTML is parsed as data and never inserted into this page. The preview is rendered from the converted Markdown, and links that could run code are not made clickable.
Yes. Paste the full page or open the .html file. The <head> section, with its title, meta tags, styles and scripts, is left out, and the content of the body is converted.
Your text is processed locally in the browser. Nothing you paste or open is transmitted or logged.