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.

or paste your own — nothing is uploaded.

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.

Markdown

Paste HTML above and the Markdown appears here.

  • Runs in your browser
  • No account required
  • Free to use

How it works

01

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.

02

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.

03

Entities are decoded

`&amp;` 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.

Who 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.

  • 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.