Free Online HTML to Markdown

Convert HTML to Markdown Online

The free online HTML to Markdown converter turns a page or a snippet into clean Markdown, with GFM tables, fenced code and links kept intact. Because it runs on Turndown in the browser, the HTML is never uploaded.

Markup and Markdown work by OnlinePCApps since 2013

No upload GFM tables Fenced code Free
0
Bytes uploaded
3M
Turndown installs a week
0
Files stored
$0
Free, always
Why convert HTML to Markdown

Three Reasons to Convert to Markdown

A block of HTML is heavy with tags a README, a wiki or a note cannot use. The free online HTML to Markdown converter strips it down to clean, portable Markdown.

Drop Content Into a README

A README, a GitHub wiki and a static site all speak Markdown, not HTML. Converting a page or a section moves the headings, links and code across as Markdown that renders cleanly wherever it lands.

Content a README can use.

Feed Clean Text to an LLM

A language model reads Markdown far better than raw HTML wrapped in scripts and styles. Converting first hands the model the words and the structure alone, which sharpens a summary or an answer.

Structure without the tag noise.

Keep Draft Content Private

An internal page or an unpublished draft should not pass through an outside server to be converted. Turndown runs in the browser, so the markup stays on the device while it becomes Markdown.

Markdown without exposing the source.
How it works

Convert HTML to Markdown in Three Steps

1

Paste or Add the HTML

Paste HTML straight into the panel above, or drop an .html file from the device. A full page or a single snippet both work, and the markup is read where it sits.

HTML MD options
2

Set the Markdown Options

Turn on GFM for tables, strikethrough and task lists. Set the heading, bullet and code style. The Markdown updates live as each option changes, so the result is easy to read before it is saved.

content.md
3

Copy or Download

Copy the Markdown to the clipboard, or download it as a .md file. The source HTML stays untouched, so the same block can be converted again with different options at any time.

Clean Markdown Copy or .md file
GFM options Tables and code
One or a batch Download or ZIP
Need it faster?

Convert a Whole Site or a Batch

A page or a snippet converts in one step on this page. For a folder of HTML files, or a whole site exported to Markdown for a docs migration, the desktop edition works straight from disk and writes each file in one run.

Get Desktop Version Free trial · Windows 7 to 11
What the free tool does

What the HTML to Markdown Tool Does

To convert HTML is to map each tag to its Markdown equivalent. The tool does that on the device with Turndown.

Map Tags to Markdown

Each semantic tag becomes its Markdown equal, a heading to a hash, strong to a pair of stars, a link to bracket-and-parenthesis and an image to its own mark. The reader ends with clean text rather than a wall of tags.

Keep Code and Its Language

A pre block with a code element becomes a fenced code block, and a class such as language-js carries the language onto the fence. Inline code stays wrapped in backticks, so a snippet reads and highlights the same as before.

GFM Tables and Task Lists

With GitHub Flavored Markdown turned on, an HTML table becomes a pipe table, a strikethrough becomes a pair of tildes and a checkbox list becomes task items. Plain Markdown has no table syntax, so the GFM option covers it.

Strip Scripts and Styles

Scripts, inline styles and layout wrappers have no Markdown equal, so they are dropped rather than carried across as noise. What survives is the content and its structure, the part a README or a note actually needs.

To convert HTML to Markdown, to turn a page into an md file and to strip the tags all name the same task. A search for HTML to Markdown or Turndown online reaches this tool, and the source markup is left as it is.

Reference

What Converts Cleanly and What to Watch

A conversion maps each tag to its Markdown equal. These points decide how the result lands.

The caseResultWhat happens and why
Headings and text1:1An h1 to h6 becomes a hash heading, and bold or italic becomes stars or underscores.
Links and imageskept intactA link keeps its text and href, and an image keeps its alt text and src.
Code blocksfencedA pre and code block becomes a fenced block, with the language from a class carried on.
ListsnestedOrdered and unordered lists convert, and nesting is kept by indentation.
TablesGFM onlyA table becomes a pipe table when GitHub Flavored Markdown is turned on.
Strikethrough, tasksGFM onlyStrikethrough and checkbox task lists also need the GFM option switched on.
Scripts and stylesdroppedScripts, inline styles and layout wrappers have no Markdown equal and are removed.
No Markdown equalkept as HTMLA tag Markdown cannot express can be left inline as raw HTML instead of lost.
Where it runson the deviceThe markup is converted in the browser, so nothing is uploaded.

From HTML Tags to Markdown

HTML and Markdown describe the same content at two very different levels of detail. HTML has more than a hundred element types and can express layout, colour and behaviour through tags, classes and styles. Markdown has around fifteen constructs and covers headings, emphasis, links, images, lists, blockquotes and code. A converter maps the semantic tags onto their Markdown equal, so an h2 becomes a hash heading, a strong becomes a pair of stars, a link keeps its text and address and a code block keeps its fence and language. This tool runs on Turndown, the most widely used library for the job at more than three million installs a week, which follows the CommonMark rules, with the GFM plugin adding tables, strikethrough and task lists. The honest point is that the mapping is lossy on purpose. A styled div, an inline colour, a form or a script has no Markdown syntax, so it is dropped or left as inline HTML. The result favours a clean, portable file for a README, a wiki or a note over a pixel-perfect copy of the page, which is almost always the point of moving to Markdown. The references below define the formats.

Honest comparison

In the Browser vs pandoc

Both turn HTML into Markdown. The trade is real, and the source is often internal.

Point of comparison This tool Built in the browser On the device pandoc A local command-line tool
Where the HTML goes Stays on the device Stays on the machine
Price and caps Free with no file cap Free tier often capped
Many document formats HTML to Markdown only DOCX, LaTeX and dozens more
A book-length document Held in tab memory Streams from disk
Script a build pipeline A paste at a time here One command in a script

pandoc wins where the job spans many document formats, a book-length file or a scripted build. This page wins for the everyday case, a page or a snippet turned to clean Markdown in a couple of clicks. Both keep the source local, and this one needs nothing installed.

Why no upload

The HTML Never Leaves the Device

The markup is parsed and rewritten inside the browser by Turndown, so the work is client-side and the HTML stays on the machine that opened it. No copy is passed to a server for the job.

HTML can hold an internal page, an unpublished draft or a client email never meant to sit on an outside server. A hosted converter has to upload the markup to process it, more exposure than a format change is worth.

1. Open the browser tools at the Network tab
2. Clear the log and let it record
3. Convert some HTML with the panel above
Nothing uploads. The Markdown was made on the page itself.
0
Bytes uploaded
0
Files stored
0
Accounts required
0
Watermarks added
Alternatives

Other Ways to Convert HTML

Each of these turns HTML into Markdown. They differ in effort, in cost and in where the source goes.

pandoc

One command converts HTML to Markdown and many other formats.
It runs offline and scripts a whole batch.
It has to be installed and lives in the terminal.

Turndown in Code

The library converts HTML in a Node or browser project.
It gives full control through custom rules.
It is a coding step, not a paste-and-go tool.

A Markdown Editor

Some editors paste HTML and keep basic formatting as Markdown.
They tie in with a note app or a wiki.
Support is patchy and tables or code often break.

Clean It by Hand

Retype the content in Markdown from the rendered page.
It gives a perfect result for a short block.
It is slow and impractical past a paragraph or two.

pandoc, Turndown in code and a hand clean all convert HTML well, yet each needs an install, a project or slow retyping. This page runs the same Turndown engine on a paste or a file, kept local with nothing to set up.

Before converting

Three Things to Know Before Converting

A little context sets what to expect.

Markdown Is a Subset

Markdown covers headings, links, lists, quotes, images and code. A styled layout, a colour or a form has no Markdown syntax, so it is dropped or kept as inline HTML. The output is clean content rather than a copy of the page.

Turn On GFM for Tables

Plain Markdown has no table syntax, and no strikethrough or task lists. Switching on GitHub Flavored Markdown adds all three, so a table in the HTML comes out as a pipe table rather than raw tags.

Paste or Upload, Not a URL

Because the work is client-side, the tool reads HTML that is pasted in or dropped as a file. It does not fetch a live web address, since that would need a server. Copy the page source, or save it as an .html file first.

The desktop edition

When a Whole Site Moves to Markdown

The browser converts a page or a snippet in memory, which fits an everyday paste. A folder of HTML files, or a whole site moving to a Markdown docs system, belongs on the desktop edition, which reads from disk and writes each file in one pass.

In a browser taba paste at a time
On the desktopa whole site in one pass
Whole Folders

Point it at a folder of HTML files and each one is written to its own Markdown file in a single run, saved beside the source.

Large Documents

A book-length page or a long export is streamed from disk, past what a browser tab keeps in memory at once.

Rule Presets

Saved presets set the GFM options and the heading and code style once, ready to apply across a repeated migration.

Common questions

HTML to Markdown Questions

It maps HTML tags onto their Markdown equivalents, straight in the browser. Headings, links, images, lists, quotes and code all convert. With GitHub Flavored Markdown turned on, tables, strikethrough and task lists convert too. The result is a clean .md file to copy or download.
Either works. HTML can be pasted straight into the panel, or an .html file can be dropped in from the device. A full page and a single snippet both convert the same way, and the Markdown appears ready to copy or save.
No. The markup is parsed and converted by Turndown running in the browser, so it never leaves the device. This suits an internal page or an unpublished draft that should not sit on an outside server for a conversion.
Yes, with GitHub Flavored Markdown turned on. Plain Markdown has no table syntax, so a table needs the GFM option, which writes it as a pipe table. The same option adds strikethrough and checkbox task lists.
Yes. A link converts to Markdown link syntax with its text and address intact, and an image converts to Markdown image syntax with its alt text and source. Nothing about them is lost in the move.
A pre and code block becomes a fenced code block. When the source has a class such as language-js on the code element, the language carries onto the fence, so the block still highlights. Inline code stays wrapped in backticks.
They are dropped. Scripts, inline styles and layout wrappers have no Markdown equivalent, so carrying them across would only add noise. What survives is the content and its structure, which is the point of moving to Markdown.
By design, yes. Markdown has around fifteen constructs against the hundred or more in HTML, so anything visual or interactive that Markdown cannot express is dropped or left as inline HTML. The trade buys a clean, portable file over a pixel-perfect copy.
Turndown is the JavaScript library that powers the conversion. It is the most widely used tool for turning HTML into Markdown, with more than three million installs a week. It follows the CommonMark rules for predictable output.
GitHub Flavored Markdown, or GFM, is an extension of Markdown that adds tables, strikethrough and task lists on top of the standard syntax. A GFM plugin handles these, which is why the table option has to be switched on to convert them.
Yes. The heading style can be the hash form or the underline form. The bullet marker can be a dash, a star or a plus. Code can be fenced or indented. The Markdown updates live as each option changes.
No. Because the tool runs on the device with nothing sent to a server, it cannot reach out to a live address. Copy the page source, or save the page as an .html file, then paste or drop it in to convert.
Yes. A language model reads Markdown far more cleanly than raw HTML full of scripts and styles. Converting first hands the model the words and the structure alone, which tends to sharpen a summary or an answer.
It can be kept inline as raw HTML rather than lost, since Markdown allows HTML within it. This keeps a rare element that Markdown cannot express, while everything with a Markdown form is converted cleanly around it.
Yes. The tool runs in a mobile browser as well as on a desktop, so HTML pasted on a phone converts without an app. The markup is read on the device and nothing is sent to a server.
Hosting the page costs little, and because the conversion runs on the device nothing is received or stored here. The desktop edition, built for whole-site migrations and batches of files, is what earns. This tool sets no cap and no watermark.

OnlinePCApps Documents Group

Written and reviewed by Lukas Brandt, who has worked on markup and document formats here since 2013

Last reviewed August 2026
13
Years on data tools
0
Files uploaded
3M
Turndown installs a week
0
Watermarks

People expect HTML to Markdown to be a clean one-to-one swap, and the honest picture is that it is deliberately lossy. HTML has more than a hundred element types and can describe layout, colour and behaviour. Markdown has around fifteen constructs and describes content. The conversion maps the semantic tags across, so a heading, a link, a list and a code block all land cleanly, while a styled div, an inline colour or a form is dropped or kept as inline HTML. The point worth stating plainly is that this is the right trade when the destination is a README, a wiki or a note, since those want clean portable text rather than a copy of the page. The engine here is Turndown, the library behind most HTML to Markdown work at over three million installs a week, following the CommonMark rules with a GFM plugin for tables. Since the source is often internal, the whole conversion runs in the browser and sends nothing to a server.

Standards followed

Turndown · JavaScript CommonMark · Spec GFM · GitHub Markdown · Gruber
Built on the same shared design system as every OnlinePCApps tool. onlinepcapps.com

Convert HTML to Markdown Online for Free

Free and online, with no sign-up and no upload. Turn HTML into clean Markdown in the browser, all on the device.

Convert HTML to Markdown Free, no account Try Desktop Edition For whole sites and batches
Convert to Markdown