Categories
HTML to Markdown Converter
Convert HTML into Markdown syntax.
Overview
- Converts HTML headings, paragraphs, emphasis (bold/italic), links, images, lists, code blocks, and quotes into the corresponding Markdown syntax.
- Useful for porting HTML copied from a CMS or web page into Markdown-based documents such as a README or Notion.
- The conversion happens entirely in your browser.
Usage
- Paste HTML into the input field.
- Click the "Convert" button.
- The corresponding Markdown is displayed. Use the "Copy" button to copy the result to your clipboard.
Example
Input
<h1>Title</h1><p>Hello <strong>world</strong></p>
Output
# Title Hello **world**
Use Cases
- Porting HTML from a web page or blog post into a Markdown document such as README.md
- Converting HTML content exported from a CMS into Markdown files for a static site generator
- Turning an HTML snippet copied from a browser's developer tools into a format that can be pasted into a Markdown input like Notion's
FAQ
Which HTML tags are supported?
Headings (h1-h6), paragraphs (p), emphasis (strong/b, em/i), strikethrough (del/s), links (a), images (img), lists (ul/ol, including nesting), code blocks (pre/code), inline code (code), quotes (blockquote), and horizontal rules (hr) are supported.
Can tables be converted?
Full Markdown table syntax is not supported. Each row's cell contents are output as space-separated text, so adjust it into table syntax manually if needed.
What happens if the text contains characters like *, _, or [ ]?
These characters are automatically escaped (e.g. converted to \*) so they aren't accidentally interpreted as Markdown syntax.
Is my input sent anywhere?
No. Parsing and converting the HTML happens entirely within your browser.
Notes
- Container elements such as table, thead, tbody, and div are flattened, converting the block elements (headings, paragraphs, etc.) inside them. Cells within a tr are output as one space-separated line.
- Unsupported tags (span, label, etc.) are ignored, carrying over only their content.
Related Tools
Format and normalize Markdown to make it easier to read.
Preview Markdown in real time.
Convert text to camelCase, snake_case, and other naming conventions.