HTML to Markdown Converter
Paste raw HTML or copy straight from a web page and get clean Markdown.
Detected source
Waiting for text…
Paste destination
Paste here
Ready for Markdown
Your converted, copy-ready text appears here.
Verified for Markdown
Copies the converted text the moment you paste or pick a destination, with no Copy click needed.Runs entirely in your browser. Your text never leaves your device.
How HTML maps to Markdown
| Feature | HTML | Markdown |
|---|---|---|
| Bold | <b> or <strong> | **x** |
| Italic | <i> or <em> | *x* |
| Link | <a href> | [text](url) |
| Heading | <h1> | # x |
Common gotchas
- Formatting is read from both the tags and the inline CSS, so a <strong> tag and a plain span styled font-weight 700 both become bold.
- A <pre> block converts to a fenced code block and a <table> converts to a GitHub-style pipe table, so structure survives, not just inline styles.
- <sup> and <sub> on digits and signs (footnote markers, exponents, formulae like H2O) become Unicode superscript and subscript glyphs, since Markdown has no superscript syntax. Letters outside that set pass through as plain text.
- Page chrome that rides along in a web copy, like nav, buttons or ad markup, comes through as its plain text. Trim it after pasting.
- Underline, color and font size have no Markdown equivalent and are dropped while the text is kept.
Frequently asked
- Does this handle HTML tables and code blocks?
- Yes. A <table> becomes a GitHub-flavored pipe table and a <pre> block becomes a fenced code block. Inline <code> stays as backtick code.
- Will scripts or styles in the HTML run?
- No. The HTML is parsed for text and formatting only, in your browser. Script and style content is never executed, and the pasted content is not uploaded.