Skip to main content

HTML to Markdown converter

Convert HTML to clean Markdown in your browser. Paste or open a local .html file, pick heading and bullet style, then copy or download. No uploads.

Options

Runs entirely in your browser; nothing is uploaded. Next: Markdown to text · Token counter

Paste HTML (or open a local .html file) and get clean Markdown you can drop into a README, a docs site or an AI prompt. Conversion runs in your browser; nothing is uploaded.

How to use

  1. Paste HTML into the HTML box, or choose a local .html / .htm file (it is read on your device as UTF-8).
  2. Pick options: ATX (#) or Setext (underlined) headings, - or * bullets, and whether to keep links and images.
  3. The Markdown box updates as you type. A character, word and estimated token count is shown under it.
  4. Copy the result or Download .md.

What it handles

Headings, paragraphs, bold and italic, links, images, ordered and unordered lists, inline code, code blocks (keeping a language- class), block quotes, simple tables and line breaks. <script>, <style>, <iframe>, <svg> and similar elements are dropped, javascript: and data: links are removed, and the input is never executed or injected into the page. Inputs over 5 MB are refused; split them into smaller parts.

Limits

Complex layouts (nested or merged-cell tables, forms, embedded widgets) do not have a clean Markdown equivalent, so expect to tidy those by hand. The token figure is a quick ~4-characters-per-token estimate, not an exact model count.

Markdown to text · Markdown to HTML · Token counter

How we check

Checked against the tool’s unit tests and a manual run in a desktop browser on 2026-11-13 (Asia/Colombo). Corrections: [email protected].

More free tools