The quick answer

Paste HTML into the input pane and Markdown appears on the right as you type: <h1> becomes #, <strong> becomes **, <a href="url">text</a> becomes text, and &amp; decodes to & so the text survives. Script and style blocks are dropped entirely. One click copies the result, another downloads it, and nothing leaves your browser.

What the HTML to Markdown Converter is for

The HTML to Markdown Converter takes pasted HTML and returns Markdown, in one direction, live. It targets the middle-ground job: too small to justify a build step, too recurring to retype by hand. The reverse direction lives on the Markdown to HTML Converter page, and a "Use as input" button chains the two without a re-paste.

The input pane starts empty, with a Load example button that fills it with a short sample: a heading, some bold text and a link. Converting that sample by hand takes about a minute, so the button is the quickest way to see the rules in action before real HTML enters the page.

The HTML to Markdown Converter in five steps

The workflow is paste, watch, copy. These steps cover the whole path, including the escaping check people skip.

  1. Load the example or paste your HTML

    The Load example button fills the input with <h1>Title</h1><p>Some <strong>bold</strong> text with a <a href="https://example.com">link</a>.</p>. The output pane renders live as you type or paste.

  2. Watch the Markdown appear

    <h1>, <h2> and <h3> become #, ## and ###; <h4> through <h6> all collapse to ####; <strong> and <em> become ** and *; <a href> becomes text; every <li> becomes a hyphen item; <pre> blocks become fenced code.

  3. Check the entities

    &amp; comes back as a literal &, &lt; as <, &quot; as ", and &nbsp; as a space. Only those five decode: &apos; and numeric references like &#39; pass through unchanged.

  4. Copy, download or continue

    Copy puts the Markdown on your clipboard; Download writes an htmlToMarkdown.txt file; "Use as input" pipes the output straight back so the next transformation starts from the converted text.

  5. Clear when done

    Clear wipes the input instantly. Processing is local, so there is no history and no server copy.

How the conversion works, tag by tag

The converter applies a fixed chain of substitutions rather than parsing a document tree. Script and style blocks are removed first, because Markdown has no equivalent and the text you want never lived there. Headings map next (h1 to #, h2 to ##, h3 to ###, h4 through h6 collapsed to ####), then inline emphasis, links and images, then list items, blockquotes, code and horizontal rules. Finally every remaining tag is stripped, five named entities decode, runs of blank lines collapse to one, and repeated spaces collapse to one. The order matters: each rule runs over what the previous rules left behind.

A worked example you can check by hand

Feed the converter <h2>Release notes</h2><p>Fixed the parser &amp; the CLI.</p> and it returns "## Release notes" followed by "Fixed the parser & the CLI.": the heading gains its hashes, the paragraph break becomes a blank line, and the entity decodes once to a literal ampersand. Run the raw text "a < b & c" through the sibling Markdown to HTML Converter and it comes back as "a &lt; b &amp; c", the correct HTML encoding. The pair round-trips cleanly in both directions.

Both outputs above were produced by running the engine's own conversion code; pasting the same inputs into the live tools reproduces them exactly.

Who converts HTML to Markdown, day to day

Sysadmins and release managers: turn the HTML changelog a CI job emits into the Markdown the project README expects, without adding a Node build step. Paste, copy, commit; the changelog never leaves the machine.

Technical writers: migrating legacy HTML documentation into a Markdown-based static site becomes a paste loop: convert, spot-check the links, commit. Headings and anchors carry over; the CMS import stops being a weekend project.

QA engineers: a failing test's HTML diff becomes readable Markdown for the bug report, where it renders in the tracker instead of arriving as a wall of escaped tags.

Accuracy, limitations and edge cases

Limits stated up front are a feature. These are the constructs to double-check after a conversion.

  • Tables come across as their cell text. The converter maps the constructs Markdown has equivalents for (headings, emphasis, links, images, list items, quotes, code, rules) and strips the rest, so a <table> yields its contents rather than pipe rows.
  • Ordered lists lose their numbering. Every <li> becomes a top-level hyphen, so an ol comes out as a dash list; renumber by hand if the numbering itself matters.
  • Nesting flattens for the same reason: each <li> becomes a single-level hyphen item, and indentation hierarchy needs a hand-edit after conversion.
  • Repeated spaces collapse to one. Pretty-printed HTML keeps its line breaks but loses leading indentation, so the output is plainer than the input.
  • Only five named entities decode (&nbsp;, &amp;, &lt;, &gt;, &quot;). &apos; and numeric references like &#39; pass through untouched.

No estimates anywhere in the pipeline: every output follows from the documented rules, and where a construct does not convert, the list above says what happens instead.

Your HTML never leaves the browser

Internal HTML is exactly the kind of input that should not cross a network boundary: unreleased marketing copy, internal schema docs, credentials buried in a config sample. The conversion runs as plain JavaScript on your device, so there is no upload path to intercept in the first place.

How it compares with Pandoc, Turndown and CMS plugins

Every option here has competitors. The table below makes the fit concrete on speed, privacy and method documentation.

AlternativeWhere it winsWhere this tool wins
PandocDozens of formats, options and batch files from the command lineNo install and no terminal: paste HTML, copy Markdown, with the tag-by-tag rules written on the page
Dillinger and other Markdown editorsA full writing environment: edit, preview and export in one placeOne job, one direction, done instantly, with no workspace to create first
IDE Markdown preview (VS Code and friends)Live side-by-side while you edit, inside the projectHandles the editorless jobs: CMS exports, email templates, docs migrations, with Copy and Download one click away
CMS import pluginsAutomate the migration inside the platform, at scaleNothing to install or configure: works on any HTML source, including the one-off pastes a plugin route cannot justify

Trade-offs rather than verdicts: Pandoc is the tool for nightly batch jobs, an IDE preview is the tool while you write, and this page is for the paste in between.

When output looks wrong

Two causes cover almost every surprise this converter produces:

  • Attributes with no Markdown equivalent disappear: class, style and id vanish in conversion; note them before pasting if the styling mattered.
  • Inline tags unwrap silently: <span> and <font> drop and leave their text, which is usually what you want but worth knowing when you expected the markup kept.

If the output still looks wrong, the contact page takes the details; the fix list is short because the rule set is small.

Frequently asked questions

These are the questions people actually search about the html to markdown conversion. The contact page takes anything missing.

Is the HTML to Markdown Converter free to use?

Yes. There is no account, no email gate and no usage cap, because the conversion never touches a server: there is no infrastructure bill to recover through fees or gates.

How exact are the html to markdown results?

Every conversion follows the tag-by-tag rules documented on this page, and the worked example reproduces byte for byte. Where Markdown has no equivalent for a construct, the converter strips it and the limits section says so.

Can I use the HTML to Markdown Converter offline?

In practice, yes. Load the page once and the conversion keeps working on a plane or in a dead zone, because nothing about the computation requires the network.

Is my code private when processed by HTML to Markdown Converter?

Completely. The conversion runs as plain JavaScript in your browser: the HTML you paste never becomes a network request, is never logged, and disappears when you close the tab.

Do you store what I enter into the HTML to Markdown Converter?

No. Processing happens on your device, so your inputs are never transmitted, logged or retained. Refresh the page and everything you entered is gone.

Converter tools that pair well with this one

These tools share the converter's workflow most often; the links exist because people genuinely chain them.

  • Markdown to HTML Converter: the return trip: paste the Markdown back and recover clean HTML with spec-correct escaping of < > &.
  • HTML Beautifier & Minifier: tidy or compress the HTML before converting, so the input the converter sees is well-formed.
  • CSV to JSON Converter: the sibling converter for tabular data, for migration jobs that include structured rows as well as prose.

Sources and further reading

The references below are the specifications those rules follow.

Sources and further reading

We cite primary sources (standards bodies, government agencies, official documentation) wherever they exist so you can verify every number on this page yourself.