Online HTML to Markdown converter
Upload a saved web page or paste its HTML, and get Markdown an AI model reads well: headings, lists, tables, code blocks and links, without menus, scripts and styling. Free, no account, and the file stays on your computer.
This page converts files in your browser and does not fetch links: a browser does not let one site read another site's HTML. To convert a page from its link:
- Open it, press Ctrl+S (Cmd+S on a Mac) and upload the saved .html file in the first tab. Set the link as the page address, so relative links resolve.
- Or add the free Chrome extension: one click converts the page you are reading, including pages behind a sign-in and pages that scripts build.
- AI agents: the MCP server fetches by URL,
npx -y page2ai-mcp.
Options
🔒 Converted in this browser tab by @page2ai/core, the engine of the Page2AI MCP server. No request carries your file: open DevTools → Network, let this page finish loading, then convert one; no request appears.
How it works
Section titled “How it works”The converter runs @page2ai/core, the open-source engine of the
Page2AI MCP server, inside this browser tab. Your file is read by the browser, parsed by a parser that
runs no script and loads no image, style or font from it, and turned into Markdown in a background thread of the
page. No request carries your file or its text, and nothing is stored or logged: close the tab and it is gone,
unless you copied or downloaded the Markdown.
For the same HTML and page address it gives the same Markdown as the MCP server and the npm library, because it is
the same function; only the conversion time in the frontmatter differs. Without a page address it leaves out the
source: "about:blank" line the library writes then. The Chrome extension has its own engine for the
page you are reading: it also expands collapsed sections and tabs, waits for content that scripts load, and reads
pages behind your sign-in, so its Markdown for a live page can hold more than a saved file does.
Why a file and not a link
Section titled “Why a file and not a link”A web page cannot read another site’s HTML: the browser blocks it. So this page converts files you give it and
does not fetch links. To convert a page by its link, use the Chrome extension on the open page, or let an AI agent
call the MCP server, which fetches the page from your machine (npx -y page2ai-mcp).
Questions
Section titled “Questions”Is my HTML uploaded anywhere?
Section titled “Is my HTML uploaded anywhere?”No. The conversion runs in this tab. You can check it: open the browser’s developer tools, go to Network, wait until this page has loaded (it fetches the converter’s own scripts from this site once), then convert a file: no request appears. The one thing that makes requests is ticking «Load images» in the preview: the browser then loads those images from the sites that host them.
What does the frontmatter hold?
Section titled “What does the frontmatter hold?”The page title, its address when one is known (typed under Options, or found in the file), the time of the conversion, the language, description and canonical link the page declares, and the engine name and version. Turn it off under Options.
Why is my Markdown empty or short?
Section titled “Why is my Markdown empty or short?”Some pages build their text with scripts after they load, or show it only after a sign-in, and a saved copy of such a page holds little text. The extension reads the page in your own tab after its scripts ran.
Is there a size limit?
Section titled “Is there a size limit?”10 MB of HTML on a computer, the same limit as the MCP server, and 4 MB on a phone or tablet. Converting takes memory, about 20 to 60 times the file’s size in our measurements, and a phone gives a tab less of it. Larger pages convert in the extension.
What does it cost?
Section titled “What does it cost?”Nothing. Page2AI is free and open source (MIT).