Site to Markdown
BetaPaste a web page's HTML or upload a saved .html file and get clean Markdown, with navigation, footers and scripts removed. This page does not fetch URLs.
- Free, no sign-up
- REST + MCP
- Updated
- Reviewed by Olgun Ozoktas
Paste a saved page's HTML, or upload the .html file. This page does not fetch URLs.
Used only to make relative links and images absolute. Nothing is fetched.
Paste a page's HTML to see its Markdown
How to get a page's HTML
View Source
Open the page and press Ctrl+U (Windows, Linux) or Option+Cmd+U (Chrome and Safari on a Mac; Cmd+U in Firefox). Select all, copy, and paste it here.
Save Page As
Press Ctrl+S or Cmd+S and save the page as HTML. Then use Upload above to open the saved .html file; its image folder is not needed.
Built with JavaScript?
If View Source holds little text, open the developer tools (F12, or Option+Cmd+I on a Mac), right-click the <html> element in Elements, and choose Copy, then Copy outerHTML.
How to Convert a Web Page's HTML to Markdown
-
Get the Page's HTML
Open the page in your browser. Use View Source (Ctrl+U, or Option+Cmd+U on a Mac) and copy everything, or save the page with Ctrl+S or Cmd+S as an .html file. -
Paste or Upload It
Paste the HTML into the Page HTML panel, or upload or drop the saved .html file. The Markdown appears as soon as the HTML is there. -
Add the Page URL for Absolute Links
Optionally type the page's address into Page URL. Relative links and image paths are then written as full https:// addresses. Nothing is fetched. -
Check, Copy or Download
Read the Markdown or switch to Preview, check the word, line and character counts, then copy it or download it as a .md file.
Common Use Cases
Feeding a Page to an AI Model
Archiving an Article
Moving Content to a Markdown Site
Writing Docs from an Existing Page
Why Use Site to Markdown?
Site to Markdown turns the HTML of a whole web page into clean Markdown. Paste the page's HTML, or upload the .html file your browser saved, and the converter keeps the content and drops the rest: the head, scripts, styles, iframes, SVG, navigation and footers, and anything marked hidden. When the page has a <main> or <article> element, only that part is converted. This page does not fetch URLs; it works on HTML you already have.
Headings, paragraphs, bold and italic text, strikethrough, links, images, ordered and unordered lists, blockquotes, fenced code blocks with their language, and tables come out as standard Markdown. An optional Page URL resolves relative links and image paths into absolute ones, so the Markdown still works outside the site. The result shows its word, line and character counts, can be previewed as rendered text, and can be copied or downloaded as a .md file. On this page, the conversion runs in your browser.
For a snippet rather than a page, the HTML to Markdown converter converts exactly the HTML you give it. To go the other way, Markdown to HTML renders Markdown back into HTML, and the Markdown Previewer shows how a document renders while you edit it. For tables, HTML Table to JSON pulls tabular data out of a page as JSON.
How it compares
Reader services and scraping APIs fetch a URL for you, which needs a key, a quota or a server that can reach the page. Browser extensions convert the page you are on, but they need installing. This page takes the HTML you already have, so it also works for a page behind a login that you saved yourself, with no extension and no account.
Libraries such as Turndown or a Pandoc command do the same conversion in code, with more options and some setup. When you want that from a script here, the same converter is on the FindUtils REST API and MCP server; like this page, it does not fetch the URL.
Tips for Better Conversions
- Fill in Page URL when the page links with relative paths; otherwise a link such as /pricing/ stays relative in the Markdown and breaks outside the site.
- A page that renders with JavaScript may show little in View Source. Copy the outerHTML of the
<html>element from the developer tools instead, after the page has loaded. - Pages with a
<main>or<article>element convert most cleanly, because only that part is kept. A page without one is converted from the whole body. - For a single block you already picked out, such as a table or a paragraph, use HTML to Markdown: it converts exactly what you give it.
- Read the Preview before you paste the Markdown elsewhere: a table with merged cells or a layout table can need a hand edit.
Frequently Asked Questions
Does Site to Markdown fetch a URL?
How is Site to Markdown different from HTML to Markdown?
<main>, <article> or role="main" element when it has one. HTML to Markdown converts the HTML you give it as it is, which suits a snippet or a fragment you already picked out. How do I get the HTML of a web page?
What does the converter remove from a page?
<main>, <article> or role="main" element, only that element is converted, so sidebars and headers outside it are left out; without one, the whole body is converted.