HTML → Markdown
Convert HTML markup to clean Markdown. Supports headings, paragraphs, lists, links, bold, italic, code, and more.
Convert HTML to Markdown online: clean output for docs, GitHub, and static sites
HTML is the language of the web, but Markdown is the language of modern documentation. Moving content between a CMS, a GitHub README, a Notion page, or a static site generator often means reformatting HTML by hand. AlteredIdea's HTML to Markdown converter handles the structural translation automatically, producing clean, readable Markdown that works wherever you need it.
The converter maps semantic HTML elements to their Markdown equivalents: heading tags become ATX-style headings, list items become bullets or numbers, anchor tags become inline links, and code blocks become fenced code. HTML entities are decoded, excess whitespace is collapsed, and wrapper elements like html and body are stripped: so you get only the content, formatted correctly.
How to convert: step by step
- 1Paste your HTML
Copy HTML from your source: a web page, CMS editor, email template, or documentation: and paste it into the left panel. - 2Conversion happens live
The Markdown output updates as you type, so you can see the result without clicking a button. - 3Check the output
Review the Markdown on the right. Headings, paragraphs, lists, links, bold, italic, inline code, and fenced code blocks are all converted. - 4Click Convert if needed
For large pastes, you can also click the Convert button to trigger a fresh conversion. - 5Copy and use
Click the Copy button to put the Markdown on your clipboard. Paste it into GitHub, Notion, a static site generator, or any Markdown editor.
Related Tools
CSV → JSON
Convert comma-separated data to JSON arrays with automatic header detection.
JSON → CSV
Convert JSON arrays of objects to CSV with automatic column extraction.
JSON → XML
Serialize JSON objects to well-formed XML with configurable root element.
XML → JSON
Parse XML documents to JSON with attribute and text node preservation.
Frequently Asked Questions
- What HTML elements does the converter support?
- The converter handles h1–h6, p, ul/ol/li, a, img, strong/b, em/i, code, pre, blockquote, br, and hr. Unknown or unsupported tags are stripped, leaving their text content.
- Does it handle nested HTML like lists inside blockquotes?
- Basic nesting is supported. Deeply nested structures may produce simplified Markdown since Markdown itself has limited nesting semantics compared to HTML.
- Will HTML entities be converted?
- Yes. Common entities like &, <, >, ", ', and are decoded to their plain-text equivalents in the Markdown output.
- Can I convert a full web page?
- Paste the full HTML source. The converter strips the DOCTYPE, html, head, and body wrapper tags automatically so only the content is converted.
- Is my HTML sent to a server?
- No. All conversion logic runs entirely in JavaScript in your browser. Nothing is uploaded or stored.
- What happens to inline styles and class attributes?
- HTML attributes such as class, style, and id are ignored. The converter focuses on semantic structure rather than visual presentation.
- How are images converted?
- img tags become Markdown image syntax: . If no alt attribute is present, the placeholder text 'image' is used.
- How are links converted?
- Anchor tags become standard Markdown links: [link text](href). The href attribute is preserved exactly as it appears in the HTML.
- What should I do if the output has too many blank lines?
- Three or more consecutive newlines are collapsed to two, matching Markdown paragraph convention. If you still see excess whitespace, it is likely present in the original HTML.
AlteredIdea vs alternatives
vs online converters that send data to servers: AlteredIdea converts entirely in your browser. Sensitive data never leaves your device.
vs writing conversion scripts: Instant results with no coding. Paste, convert, copy.
vs paid tools: Completely free, no account, no file size limits.