Toolvist

HTML to Markdown Converter

Convert HTML markup into clean Markdown, preserving headings, links, lists and tables.

A fragment or a full document both work.

Ready.

Words

0

Characters

0

Links

Elements

0

HTML to Markdown Converter

Convert HTML into clean Markdown. Headings, bold and italic text, links, images, nested lists, blockquotes, code blocks and tables are all translated, with options for heading style, list bullets and code fences.

The reverse direction is Markdown to HTML Converter, and Strip HTML Tags is the right tool if you want prose without any structure at all. To tidy the source before conversion, the HTML Formatter & Beautifier makes it readable.

How to use the HTML to Markdown

  1. 1 Paste your HTML into the left pane, or drop a file onto it.
  2. 2 Choose the flavour options — ATX or setext headings, dash or asterisk bullets, fenced or indented code.
  3. 3 Check the live preview to confirm the structure survived as you expected.
  4. 4 Copy the markdown, or download it as a file.

Migrating content between systems

Moving articles out of a content management system usually means moving from stored HTML to markdown, because modern static site generators and note-taking tools use markdown as their source format. Hand-converting a hundred posts is not realistic, so a converter that handles the common block elements correctly is the difference between a migration that happens and one that does not.

The other common case is cleaning up content you write elsewhere. A rich-text editor produces HTML with inline styles attached to every element, which is unmaintainable in source control. Converting to markdown strips that layer entirely, leaving the words and the structure, which is what you actually wanted.

Checking the conversion

  • Compare heading levels in the preview against the original; a dropped level changes the document outline.
  • Confirm that links kept their targets, since relative paths may need adjusting in the destination.
  • Look at any table or definition list closely, as these are where fidelity is lost first.
  • Re-read image alt text in the output, which is often the only surviving record of what a figure showed.

Frequently asked questions

What gets lost in the conversion?

Anything markdown cannot express. Classes, IDs, data attributes, table cell spans, and complex nested layouts have no equivalent, so they are dropped. The text content and the block structure survive; the styling and the semantic metadata do not. That is a property of markdown rather than a limitation of the converter.

Why do some tables come out as plain text?

Because markdown tables support only simple grids — a header row and uniform body rows with no merged cells. A table with rowspans, colspans, or nested content cannot be represented, so the converter falls back to something readable rather than producing markdown that will not render. Check any table in the preview and decide whether the loss is acceptable.

Should I keep the HTML or the markdown?

Keep the markdown if you will keep editing the document. It is easier to read in source form, diffs cleanly in version control, and does not accumulate the styling cruft that rich-text editors add. Keep the HTML if the document needs to look exactly the same everywhere, since markdown delegates appearance to whatever renders it.

Related Text Tools

Browse all Text Tools →

You might also need

Tools from other categories that people pair with the HTML to Markdown:

Browse the full tool directory →