HTML to Markdown
Turn HTML from a page, email or CMS export into readable Markdown.
- Runs in your browser
- No uploads
- No account
Loading your browser tool…
What HTML to Markdown does
Moving a help center into a docs-as-code repo, or pulling an old blog post into a Markdown editor, usually starts with HTML. Paste the markup and the converter writes Markdown that mirrors its structure: headings stay headings, bold and italics become ** and *, links keep their titles, and code blocks keep their language.
Ordered lists keep a custom start number, and a checkbox inside a list item becomes a [x] or [ ] marker. For the reverse direction use Markdown to HTML; if you only want the words, HTML to Plain Text drops the formatting entirely.
Example
Input
<h2>Invite a teammate</h2> <p>Go to <b>Settings</b> > <a href="/members">Members</a>.</p> <ol start="3"><li>Enter an email</li><li>Pick a role<ul><li>Editor</li></ul></li></ol> <script>track()</script>
Result
## Invite a teammate Go to **Settings** > [Members](/members). 3. Enter an email 4. Pick a role - Editor
The script disappears, > becomes a plain >, and the list that starts at 3 keeps counting, with the nested bullet indented under item 4.
How to use HTML to Markdown
- Paste HTML into the HTML box, or click Open file to load an .html or .htm file.
- Read the Markdown on the right; it updates as you edit the HTML.
- Click Copy, or Download .md to save it.
Good to know
- Inline styles and classes are ignored, so colours, font sizes and layout from the original page are lost. Only the structure carries over.
- Merged table cells (colspan or rowspan) can't be expressed in a Markdown table, so cells in those rows shift. Check wide tables after converting.
- Relative links such as
/membersare kept as written, so they only work if the Markdown ends up on the same site. - Navigation menus and footers convert too, as lists of links. Paste only the article's HTML when you want just the content.
Questions about HTML to Markdown
How do I convert a web page to Markdown?
Open the page, use your browser's developer tools to copy the outer HTML of the main article element, and paste it here. Copying only the content avoids menus and footers. Then copy the Markdown or download it as a .md file.
Does it keep tables?
Yes. HTML tables become pipe tables with a header row. Left, center or right alignment on the first row's cells becomes the matching divider, such as :---:, pipes inside cells are escaped, and line breaks become <br>.
Why are some characters escaped with a backslash?
Characters such as *, [, ] and backticks mean something in Markdown. When they appear as ordinary text in the HTML, the converter adds a backslash so they stay literal instead of turning into emphasis or links.
What happens to images?
Images with an http, https or relative address become Markdown image syntax with their alt text and title. Images stored as data: URLs are not embedded; only their alt text is kept.