Convert HTML to Markdown Online

Free Online HTML to Markdown Converter

Free online HTML to Markdown converter. Paste HTML or upload an .html file, press Convert to Markdown, then copy GitHub Flavored Markdown or download a .md file.

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

Online HTML to Markdown Converter for READMEs, Wikis and LLMs

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 handles 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 Online in Three Steps

1

Add the HTML

Paste HTML into the Source HTML editor, or select Upload to load an .html, .htm or .txt file. Drag and drop works too. A full page or one snippet both work, and the box starts with a sample heading and paragraph.

HTML MD options
2

Press Convert

Press Convert to Markdown. The panel shows Converting... and then opens the result as Markdown Code, with an HTML Preview tab that renders the HTML that went in. The panel has no options to set.

content.md
3

Copy or Download

Press Copy to copy the Markdown, or Download .md to save it. An uploaded file saves under its own name and pasted HTML saves as converted.md. Edit / Convert Another returns to the HTML.

Clean Markdown Copy or .md file
GFM output Tables and code
One input Paste or upload
Need it faster?

Desktop HTML to Markdown Converter for Batches

This page converts one input per run. A folder of HTML files or an entire site belongs to pandoc or the desktop edition.

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

What the Online HTML to Markdown Converter Does

To convert HTML is to map tags to Markdown marks. Here that means a Source HTML editor, a Convert to Markdown button and GFM output.

Map Tags to Markdown

Every 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 like language-js carries the language onto the fence. Inline code stays wrapped in backticks, so a snippet highlights the same as before.

GFM Tables and Task Lists

The output is GitHub Flavored Markdown, so an HTML table becomes a pipe table, a strikethrough becomes a pair of tildes and a checkbox list becomes task items. The panel has no GFM switch, as the flavor is built in.

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

To convert HTML to Markdown, to turn a page into an md file and to strip tags all name one task. A search for HTML to Markdown or HTML to md reaches this page, and the source markup stays as it was.

Reference

HTML to Markdown Converter Results, Case by Case

The HTML decides what the online HTML to Markdown converter returns. The results below run from clean to not on this page.

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.
TablesGFMThe output is GitHub Flavored Markdown, so a table becomes a pipe table. The panel has no GFM switch.
Strikethrough, tasksGFMStrikethrough and checkbox task lists use GFM syntax too.
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.
OptionsnoneThe panel has no heading, bullet or code style settings. Press Convert to Markdown and take the output as it comes.
Live updatenot on this pageThe Markdown appears after Convert to Markdown is pressed. Edit the HTML and press it again.
Web addressnot on this pageThe panel takes pasted HTML or a file, not a URL. Copy the page source or save it as an .html file first.
Several filesnot on this pageEvery run takes one pasted block or one uploaded file.
Previewsource onlyHTML Preview renders the HTML that went in. The panel has no rendered view of the Markdown.
Source file.html, .htm, .txtUpload takes these three types. Save the file as UTF-8 first. For broken characters, see Character encoding explained and why text arrives broken.
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 different levels of detail. HTML has more than a hundred element types and can express layout, color and behavior 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 color, a form or a script has no Markdown syntax, so it is dropped or left as inline HTML. The result favors 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

Online HTML to Markdown Converter vs pandoc

Both convert HTML in one step. The trade is between a free paste-and-click page and a command line tool.

Point of comparison This tool This online converter 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 sign-up Free and open source
Many document formats HTML to Markdown only DOCX, LaTeX and dozens more
Choice of flavor GFM output only GFM, CommonMark and more
Script a build pipeline A paste at a time here One command in a script

pandoc wins on many document formats, many files at once and scripted builds. On setup the free converter wins, with no install, no sign-up and no watermark. Online file tools and whether yours uploads goes deeper on that point.

Why no upload

HTML to Markdown Converter Privacy and Data Handling

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 HTML to Markdown with the online converter 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 to Markdown Online

All of these turn HTML into Markdown. They differ on effort, on cost and on setup.

pandoc

One command converts HTML to Markdown and many other formats.
It runs offline and scripts batches of files.
Limit: Needs an install and the terminal.

Turndown in Code

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

A Markdown Editor

Some editors paste HTML and keep basic formatting as Markdown.
They tie in with a note app or a wiki.
Note: 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.
Note: Slow and impractical past a paragraph or two.

pandoc needs a terminal, Turndown needs a project and a hand clean takes time. The online converter above takes pasted HTML or an .html file with no setup.

Before converting

Three Things to Know Before Converting HTML to Markdown Online

Three pointers lead to a tidier result from the online converter.

Markdown Is a Subset

Markdown covers headings, links, lists, quotes, images and code. A styled layout, a color 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.

GFM Is Built In

Plain Markdown has no table syntax, and no strikethrough or task lists. The output here is GitHub Flavored Markdown, so a table in the HTML comes out as a pipe table rather than raw tags. The panel has no switch for it.

Paste or Upload, Not a URL

The panel takes HTML that is pasted in or uploaded as a file. It does not fetch a live web address. Copy the page source, or save the page as an .html file first.

The desktop edition

Desktop HTML to Markdown Converter for Site Migrations

The online converter handles one input per run, which suits a quick paste. A folder of HTML files or an entire site moving to Markdown belongs on the desktop edition.

On this pageone input per run
On the desktopan entire site in one pass
Folder Batches

Point it at a folder of HTML files and every file 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

Online HTML to Markdown Converter Questions

Paste HTML into the Source HTML editor or upload an .html, .htm or .txt file, then press Convert to Markdown. The result opens as Markdown Code. Copy sends it to your clipboard, Download .md saves it and Edit / Convert Another takes you back to the HTML.
Either works. Paste HTML into the editor, select Upload or drag and drop an .html, .htm or .txt file. A full page and a single snippet convert the same way, and the Markdown appears after you press Convert to Markdown. If an uploaded file shows broken characters, Character encoding explained and why text arrives broken covers the fix.
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. The output is GitHub Flavored Markdown, so an HTML table is written as a pipe table. The same format covers strikethrough and checkbox task lists. The panel has no GFM switch, so there is nothing for you to turn on.
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 like 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. If your HTML came from an email, How HTML email works and why it looks different explains why that markup is so layered.
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, extends Markdown with tables, strikethrough and task lists. The panel describes its output as GFM, so those three come out in GFM syntax with no setting for you to turn on.
Not on this page. The panel has no heading, bullet or code style settings and returns one output. A find and replace in your editor can adjust the markers afterward.
No. The panel takes pasted HTML or an uploaded file, not a web address. Open the page, copy its source or save it as an .html file, then paste or upload that.
Not on this page. Every run takes one pasted block or one uploaded file, so convert your files one by one. For a folder or a site, pandoc or the desktop edition is the better fit.
Yes. A language model handles 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.
Yes. A mobile browser works as well as a desktop. Paste your HTML or upload an .html file, press Convert to Markdown, then copy the result. No app is needed.
Yes. Paste it into the online Markdown to Word converter for an editable .docx, or into the online Markdown to PDF converter for a fixed file. To view the .md as formatted text, open it in the online Markdown reader.
Yes. The online Markdown to HTML converter turns Markdown back into semantic HTML, and the online HTML to PDF converter makes a fixed copy of your page.
Hosting the page costs little, and because the conversion runs on the device nothing is received or stored here. The desktop edition, built for entire-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 October 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, color and behavior. 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 color 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 online converter takes pasted HTML or an .html file and returns GitHub Flavored Markdown to copy or save as a .md file. It handles one input per run, so a folder or an entire site fits pandoc or the desktop edition better.

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

No sign-up and no cost. Paste HTML or upload an .html file into the online HTML to Markdown converter and copy or download clean Markdown.

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