A small, predictable dialect
Markdown to HTML handles headings from one to six hashes, bold with double asterisks or underscores, italics with single ones, strikethrough with double tildes, inline code, images, links, fenced code blocks with an optional language label, single-level lists, horizontal rules and paragraphs. HTML to Markdown reverses the common inline tags and headings. A live preview sits beside the output.
A worked example
Two hashes followed by Title becomes an h2 element. Double asterisks around bold become a strong element, single asterisks become emphasis, and a fenced block becomes pre and code with the language class. A link in square brackets followed by parentheses becomes an anchor. The counters report headings and links found in the input.
What it is not
This is a regex converter, not a CommonMark implementation. Tables, task lists, footnotes, reference-style links and nested lists are not supported, and blockquotes are recognised by an escaped greater-than sequence rather than a literal one, so a real quote line is not converted. If a document relies on those features, use a full parser.
Where it stops
- No tables or definition lists; use the markdown table generator for tables.
- Lists are single level, with no nesting.
- Code placeholders use plain numbers internally, which can collide with digits in the text.
- Raw HTML inside Markdown passes through as text.
Questions people ask
Why did my blockquote not convert?
That is a known limitation of the regex pattern. Convert the quote manually to a blockquote element.
Can I clean up the generated HTML?
Yes, paste it into the HTML beautifier. To go the other way from a web page, copy the text and use this tool's HTML to Markdown mode.