HTML to Markdown Converter
Convert HTML to clean Markdown — paste markup or a copied page selection, or drop .html files. Tables, lists and code blocks convert; scripts, styles and clutter are stripped.
🔒 Your files never leave your device — conversion runs locally in your browser.
How it works
Paste or drop HTML
Paste copied page content or raw markup into the box, or drop .html files.
Get clean Markdown
Content structure converts to GitHub-flavored Markdown; scripts, styles and clutter are removed.
Copy or download
Copy the result for a prompt, a README or your notes — or download it as a .md file.
About the formats
HTML — HyperText Markup Language
HTML is the markup language of the web: every page you read in a browser is HTML. It expresses the same structures as Markdown — headings, lists, tables, links, code — with more verbose tags, which is why the two convert into each other so cleanly. Converting HTML to Markdown strips the boilerplate and keeps the content; converting Markdown to HTML makes it publishable anywhere.
Markdown — Markdown
Markdown is a plain-text format that marks structure with simple punctuation — # for headings, ** for bold, - for lists. It has become the native output format of the AI era: ChatGPT, Claude, Copilot and coding agents all write Markdown, GitHub renders it, and note apps like Obsidian store everything in it. A .md file is just text, which is why it opens in any editor but looks unformatted without a renderer like this one.
Frequently asked questions
Is this safe? Do my files get uploaded?
No upload happens — ever. Converting HTML to Markdown runs entirely inside your browser. Your documents never leave your device, nothing is stored on any server, and the tool keeps working if you go offline after the page loads. That's also why there are no file size limits, no queues and no sign-up.
Can I paste a copied chunk of a web page?
Yes — that's the fastest path. Select content on any page, copy it, and paste into the input here: the rich-text HTML on your clipboard is converted directly. You can also paste raw HTML source or drop saved .html files.
Which HTML elements convert to Markdown?
Everything with a Markdown equivalent: headings, paragraphs, bold/italic, links, images, blockquotes, ordered and unordered lists, tables, code blocks and horizontal rules. Scripts, styles, iframes, navigation chrome and event handlers are stripped — what remains is the content.
Why turn HTML into Markdown for an LLM?
A web page's HTML is mostly noise: for a typical article, markup, scripts and styling outweigh the actual text many times over. Converting to Markdown keeps the content and its structure (headings, lists, emphasis) while discarding the rest — dramatically fewer tokens, better model focus, and a format models natively understand.
What is an HTML file?
HTML is the markup language of the web: every page you read in a browser is HTML. It expresses the same structures as Markdown — headings, lists, tables, links, code — with more verbose tags, which is why the two convert into each other so cleanly. Converting HTML to Markdown strips the boilerplate and keeps the content; converting Markdown to HTML makes it publishable anywhere.
What is a Markdown file?
Markdown is a plain-text format that marks structure with simple punctuation — # for headings, ** for bold, - for lists. It has become the native output format of the AI era: ChatGPT, Claude, Copilot and coding agents all write Markdown, GitHub renders it, and note apps like Obsidian store everything in it. A .md file is just text, which is why it opens in any editor but looks unformatted without a renderer like this one.
Is there a file size or quantity limit?
There is no hard limit. Server-based converters cap uploads because your files consume their bandwidth and CPU; here the work happens on your machine, so the only practical limit is your device's memory. Even book-length documents convert in seconds — text is light work for a modern browser.