HTML → Markdown Converter
Paste HTML (a fragment or full page) and get GitHub-flavored Markdown. The converter walks the DOM and emits proper Markdown for every common tag: `<h1>`–`<h6>`, `<p>`, `<strong>`, `<em>`, `<a>`, `<img>`, `<ul>` / `<ol>` (nested supported), `<table>`, `<blockquote>`, `<pre><code>` with language detection, `<hr>`, `<br>`. Scripts and styles are stripped. Useful for converting CMS exports, blog posts, or copied web pages into Markdown.
Paste HTML on the left.
Conversion runs entirely in your browser via DOMParser. No data leaves the page.
How to use
- Paste HTML (a fragment is fine — no need for `<html>` / `<body>`).
- Choose your bullet style and whether to keep links and images.
- Copy the Markdown output.
Frequently asked questions
- What about non-standard tags or attributes?
- Unknown inline tags pass through as their inner text. Unknown block tags become paragraphs. Style/class/data-* attributes are dropped — Markdown can't represent them anyway.
- Does it preserve code-block language?
- Yes — if the `<code>` element has a class like `language-js` or `language-python`, the fence is annotated with that language.
- Tables not converting correctly?
- Markdown tables can't represent merged cells (`colspan`/`rowspan`) or nested blocks within cells. Complex tables get flattened — sometimes you'll need manual cleanup.
- Why does pasting from Word produce weird output?
- Word's HTML export is famously bloated with mso-* styles and proprietary tags. Paste into a plain `<textarea>` first or use a Word→Markdown specific tool for cleaner output.
Related tools
CSV → HTML / Markdown / JSON Table
Convert CSV to an HTML `<table>`, a Markdown table, or a JSON array of objects — auto-detects the delimiter.
Markdown → HTML Converter
Convert Markdown to clean HTML — copy the source for emails, CMS pages, or anywhere a rendered preview isn't enough.
HTML Table to CSV Converter
Extract HTML <table> data into CSV, TSV or semicolon-separated rows, in your browser.
Markdown → Plain Text
Strip all Markdown formatting and keep readable plain text — useful for previews, summaries, email, character counts.
Markdown Table of Contents Generator
Generate a `[text](#anchor)` TOC from Markdown headings — bullet, numbered, or HTML output with GitHub/GitLab/simple slug styles.
Unit Converter
Convert length, weight, temperature, area, volume, speed, and time.