How do you convert HTML to Markdown?
Converting HTML to Markdown replaces tags with lightweight Markdown syntax: <h2> becomes ##, <strong> becomes **bold**, <a href> becomes [text](url) and <ul> becomes a dashed list. This HTML to Markdown converter uses the Turndown engine in your browser, with options for ATX or Setext headings, the bullet marker and fenced or indented code blocks. Paste HTML, get Markdown, and nothing is uploaded.
How to convert HTML to Markdown
- 1
Paste your HTML into the input box, or press “Try an example”.
- 2
Choose the heading style, list bullet and code block style you prefer.
- 3
Read the Markdown in the output box, which updates as you type.
- 4
Copy it or download it as a .md file.
Key features
Clean, readable Markdown
Headings, paragraphs, emphasis, links, images, lists, blockquotes and code are converted to idiomatic Markdown.
Style options
Pick # headings or underlined headings, -, * or + bullets, and fenced or indented code blocks.
Safe handling
Script and style elements are removed instead of being copied into your Markdown.
Private and fast
Conversion runs in your browser, so internal pages and drafts stay on your device.
Frequently asked questions
Which HTML elements are converted?
Headings, paragraphs, bold, italic, links, images, ordered and unordered lists, blockquotes, inline code, code blocks and horizontal rules. Elements without Markdown equivalents are kept as their text or as inline HTML.
Does it convert HTML tables?
Standard Markdown has no table syntax, so tables are not converted to pipe tables by the core engine; their cell text is kept. Review table-heavy pages manually.
How do I convert a web page to Markdown?
Open the page, copy the HTML of the section you need from your browser’s developer tools and paste it here. Remove navigation and ads first for the cleanest result.
What is the difference between ATX and Setext headings?
ATX headings use # characters, such as ## Title. Setext headings underline the text with = or -, and only exist for levels 1 and 2.
Is my HTML sent to a server?
No. Conversion happens locally in your browser.