Text Tools
HTML to Markdown Converter
Convert HTML to clean Markdown with headings, nested lists, aligned tables, links, images and fenced code blocks. Scripts and styles are stripped out.
How to use HTML to Markdown Converter
Paste HTML from a web page, CMS or email template and the Markdown appears as you type. Choose the heading style, bullet character, bold and italic markers, and inline or reference-style links, then press Copy result.
- Paste the HTMLPaste a page fragment, CMS export or rich-text source; whole pages work too.
- Choose the Markdown stylePick # or underlined headings, a - * or + bullet, ** or __ emphasis, and inline or reference links.
- Copy the MarkdownCheck the note for converted links, images and code blocks, then copy into your README or docs.
What gets converted
Headings h1 to h6 become # headings (or === and --- underlines for the first two levels), paragraphs are separated by blank lines, strong and b become bold, em and i become italics, and del, s and strike become strikethrough. Ordered and unordered lists keep their nesting and start numbers, checkboxes become [x] and [ ] task items, blockquotes get >, and line breaks become two trailing spaces. Pre blocks become fenced code blocks, with the language taken from a class such as language-js. Tables become pipe tables, with align or text-align turned into colon markers, and entities such as … and £ are decoded to … and £.
What is removed, and link options
Scripts, styles, the head section, iframes, SVG, select menus, audio, video and anything marked hidden are dropped along with their contents, and the note says how many. Text that would accidentally become Markdown, such as a line starting with # or a literal asterisk, is escaped with a backslash. Links keep their title, a link whose text is its own URL becomes an angle-bracket autolink, and javascript: links are reduced to their text. Choose Reference links to keep paragraphs readable: each link becomes [text][1] and the URLs are listed at the end of the document.
Accuracy and data handling
Before copying the output, check names, punctuation and the intended meaning against the source text. The calculation runs in your current browser; the tool code does not send the input to a processing API.
FAQ
Are images kept when converting HTML to Markdown?
Yes. Each image with a src attribute becomes a Markdown image with its alt text and title. Images without a src are dropped.
Why are there blank lines between paragraphs?
Markdown needs a blank line between blocks; without one, separate paragraphs would merge. Runs of more than one blank line are squeezed to one.
Can links be listed at the end of the document?
Yes. Set Links to Reference. Links become [text][1], [text][2] and so on, the URLs are listed at the bottom, and a repeated URL reuses its number.
Does it convert HTML tables?
Yes. Tables become GitHub-style pipe tables with the first row as the header, column alignment taken from align or text-align, and pipe characters in cells escaped.
More Text Tools
Related toolsAlign Markdown table columns and turn spreadsheet data into tables.
Find, dedupe and sort the email addresses hidden in any text.
Get a clean, deduplicated list of the links in any text, HTML or log
Pull phone numbers out of text and list them in E.164 or national format.
Swap Chinese and English punctuation without breaking URLs or numbers.
Turn full-width ABC123 into ABC123, or convert the other way.