Code & Data
Convert HTML back to Markdown
Paste HTML to get Markdown. The structure Markdown can express is kept; the markup it cannot — divs, classes, inline styles — is dropped and its contents preserved.
Lossy by nature. Markdown has no way to express a div, a class or a style, so those are dropped and their contents kept — what survives is the structure Markdown has words for.
Paste HTML above and the Markdown appears here.
- Runs in your browser
- No account required
- Free to use
How it works
Lossy on purpose
Markdown has no way to write a `<div class="card">` or an inline style. The alternatives are to invent syntax, to fall back to raw HTML everywhere, or to drop the wrapper and keep what is inside. The third produces Markdown someone would actually want to read, so that is what happens here.
Characters that would become formatting are escaped
An asterisk in your text becomes `\*`, so converting and converting back does not turn plain prose into emphasis. Inside code spans nothing is escaped, because there the characters are literal already.
Entities are decoded
`&` becomes `&`, because Markdown is text and the entity would otherwise be rendered literally when the Markdown is later converted back to HTML.
What it does
Headings, lists and tables
Including nested lists, ordered lists numbered correctly, and tables converted to pipe syntax.
Links, images and code
Inline links and images keep their URLs and alt text; `<pre>` becomes a fenced code block.
Recovers from broken markup
Built on the same lenient parser as the HTML formatter, so a page with unclosed tags still converts.
Runs in your browser
No upload. What you paste in is never sent anywhere.
Practical advice
Getting a better result
- Copying a rendered page and converting it is a quick way to get a Markdown draft of an article.
- Anything that relies on CSS for meaning will not survive — Markdown has no concept of a class or a style.
- Converting Markdown to HTML and back is not lossless in either direction. Treat the result as a draft.
Questions
Things people ask
What happens to divs and classes?
They are dropped and their contents kept. Markdown has no syntax for them, and preserving them as raw HTML would defeat the purpose of converting.
Will a round trip give me back my original HTML?
No. The conversion is lossy in both directions by nature — Markdown expresses less than HTML does. What survives is the document structure.
Related tools
JSON Formatter
Format and minify JSON, with errors that name the line.
Runs entirely in your browser
Open toolJSON Validator
Check JSON and get the line, column and cause of any error.
Runs entirely in your browser
Open toolJSON Viewer
Explore JSON as a collapsible tree instead of scrolling it.
Runs entirely in your browser
Open toolJSON to CSV
Turn an array of objects into a spreadsheet-ready CSV.
Runs entirely in your browser
Open toolWho builds these
Free tools by day. Websites that earn their keep by trade.
KuConvert is built by KUDUY, a web design and development agency. From custom WordPress builds to SEO and e-commerce, everything they do is engineered to bring you more qualified traffic and turn it into revenue.
Web Design
Custom, conversion-focused web design that captivates visitors and turns them into paying customers. Mobile-first, fast, and built to rank.
Web Development
Custom WordPress websites built with clean code, blazing-fast performance (Core Web Vitals optimised), and enterprise-grade security.
E-Commerce
Online stores that convert visitors to customers with seamless shopping experiences.
SEO
Technical SEO, keyword research, on-page optimisation and local SEO strategies that drive qualified organic traffic.
Digital Marketing
Data-driven campaigns that deliver measurable ROI across every channel.
Branding
Memorable brand identities that stand out in any market and build lasting trust.
Website Help
One-on-one expert support for bug fixes, updates and ongoing maintenance — without a long-term retainer.
Fixed scope, no surprise invoices
Most sites ship in four to eight weeks with the scope and the price agreed up front.
SEO from day one
Search is designed into the build — structure, schema and Core Web Vitals — not retrofitted.
A team, not a ticket queue
A project manager, a designer and a developer you can actually reach.
Need your whole site to load this fast?
Images are usually the heaviest thing on a page and the easiest win. KUDUY works on site speed, image delivery and Core Web Vitals for teams who would rather not do it by hand.
This tool runs entirely in your browser. Your files are never uploaded.