HTML to Markdown
Convert HTML text to Markdown
How to use
About this tool
Converts HTML text to Markdown in real time. Copy the generated Markdown for use.
How to use
Enter HTML text in the input field or load from a file. Markdown is generated in real time as you type and displayed in the result area. Use the "Copy" button to copy Markdown to the clipboard.
Use cases
β’ Converting web page HTML to Markdown β’ Converting rich text editor output to Markdown β’ Converting email HTML to Markdown β’ Document format conversion β’ Formatting scraped HTML
How it works
Uses the Turndown library to parse HTML and convert it to Markdown format. All processing is done in the browser and updates in real time.
Privacy and data
All conversion processing is done in the browser; HTML text and generated Markdown are never sent to any server.
FAQ
- Q: What HTML elements are converted to Markdown?
- A: The tool uses the Turndown library. It converts headings (h1βh6), paragraphs, bold/italic, links, images, unordered and ordered lists, blockquotes, code and pre blocks, and horizontal rules to their Markdown equivalents.
- Q: What happens to elements Turndown cannot convert (e.g. tables or custom tags)?
- A: By default, Turndown removes tags it cannot convert and keeps the inner text. Tables may be converted to a simplified text representation. If you need full table support, use GitHub Flavored Markdown table output if your target renderer supports it.
- Q: Can I convert a full webpage to Markdown?
- A: Yes. Paste the full HTML of a page and the tool will convert the body content. However, navigation bars, footers, ads, and script/style elements may produce noisy output β it is best to first extract the main content area.
- Q: Why are some inline styles lost in the conversion?
- A: Markdown has no syntax for inline CSS (font color, font size, etc.). Inline styles are dropped during conversion. Only semantic formatting that Markdown supports (bold, italic, code) is preserved.
- Q: Does this tool send my HTML to a server?
- A: No. All conversion is performed entirely in the browser. Your HTML is never sent to any server.
