Convert HTML to Markdown
Scripts, styles, forms and embedded frames are left out. Tags without a Markdown equivalent keep their text.
Moving content out of a CMS, into a README or into a notes app? Paste the HTML and get tidy Markdown with headings, links, lists, tables and code blocks kept.
- Free
- Runs in your browser
- Tables and code kept
- No sign-up
How It Works
Convert HTML in three steps.
Paste HTML
Copy the page source, an element from your browser's developer tools, or a CMS editor's HTML view.
Get Markdown
The Markdown appears as you paste.
Copy or download
Copy it or save it as converted.md.
Turning HTML into Markdown
The HTML is read with your browser's own parser, so messy markup from editors and email clients is handled the way a browser would. Each element is then mapped to its Markdown form: <h2> to ##, <strong> to **, <a> to [text](url), <ul> to - items, <table> to a pipe table and <pre> to a fenced code block. Anything without a Markdown equivalent, such as <span> or <div>, keeps its text and loses the tag.
Markdown is simpler than HTML. Colours, fonts, merged table cells and layout are lost, which is usually the point when you want clean text.
Code blocks with language
A class such as language-python on the <code> element carries over to the ``` fence.
Tables
The first row becomes the header row; pipes inside cells are escaped.
Nested lists
Lists inside lists are indented, and numbered lists keep their start number.
Clutter removed
Scripts, styles, forms, buttons and iframes are dropped.
Convert PDF Files and File Formats
Find the perfect online tool to combine PDF files, compress documents, and handle your daily workflow effortlessly.
PDF Tools
All your PDF needs in one place
- Merge PDF
- Organize PDF
- Split PDF
- Compress PDF
- Convert to Word
- Convert to Image
Image Tools
Edit and optimize your images
- Resize Image
- Compress Image
- Convert Format
- Crop Image
- Add Watermark
- Remove Background
Word Tools
Work with Word documents
- Convert to PDF
- Merge Documents
- Split Documents
- Compress File
- Edit Text
- Add Watermark
Excel Tools
Process Excel spreadsheets
- Convert to PDF
- Convert to CSV
- Merge Sheets
- Split Sheets
- Compress File
- Clean Data
Why Use This Converter
Clean Markdown from real-world HTML.
Browser-grade parsing
Broken or unclosed tags are fixed by the same parser your browser uses.
Tables and code
Two things most quick converters get wrong are handled properly.
Round trip
Pair it with Markdown to HTML to check the result.
Private
Nothing is uploaded, and scripts in the pasted HTML never run.
Frequently Asked Questions
Questions people ask about the HTML to Markdown converter.
Yes. Paste the page source and the head, scripts and styles are ignored. Menus and footers are converted too, so it is often cleaner to copy just the article element from your browser's developer tools.
Characters such as *, _ and [ start Markdown formatting, so they are escaped when they appear in normal text. They display without the backslash once rendered.
Markdown tables have no colspan or rowspan, so each cell is written in order and short rows are filled with empty cells.
Yes, as . The image itself is not downloaded; the Markdown points to the same address as the HTML did.
Related Text & Developer Tools
More small utilities that run in your browser.
Markdown to HTML
Convert Markdown to clean HTML with a live preview.
Markdown to PDF
Turn Markdown into a formatted PDF document.
HTML Entity Encode & Decode
Escape HTML special characters or turn entities back into text.
CSV to Markdown Table
Turn CSV or spreadsheet cells into a Markdown table.
Find and Replace
Replace words or patterns in any text, with regex support.