# Page to Markdown

> Fetch a public page and turn the article into Markdown.

Free HTML to Markdown tool for a public URL. The page is fetched on the server, private addresses are refused, and Readability keeps the article. Navigation and scripts are stripped. The result includes a token count.

- Page: https://benchline.fabwaseem.com/t/html-to-markdown-url
- Runs: in the browser, plus one server fetch of the public URL you give it.
- Price: free, no account
- Input: One public page URL.
- Output: Markdown, a title, an excerpt, and a token count.
- Keywords: url to markdown, html to markdown, readability markdown
- Updated: 2026-10-18
- Built by: Waseem Anjum (https://fabwaseem.com)

## How to use it

1. **Paste a public URL.** http or https. Private addresses are refused.
2. **Fetch the article.** The server downloads the page and keeps the readable part.
3. **Copy the Markdown.** The article, the title, and a token count.

## Use it from an AI agent

MCP tool name: `fetch_page_markdown`
MCP endpoint: https://benchline.fabwaseem.com/mcp (Streamable HTTP, no key)
HTTP: POST https://benchline.fabwaseem.com/api/v1/tools/html-to-markdown-url with the input as the JSON body
This call fetches a public URL on the server. Private addresses are refused.

Fetch a public HTML page and return the article as Markdown, plus a title, excerpt, and o200k token count. Private and local addresses are refused. The response is capped at 800 KB.

### Input schema

```json
{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "minLength": 1,
      "description": "Public http or https URL. Private and local addresses are refused."
    }
  },
  "required": [
    "url"
  ],
  "additionalProperties": false
}
```

### Example tools/call

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "fetch_page_markdown",
    "arguments": {
      "url": "https://example.com/file"
    }
  }
}
```

Setup for Claude, Cursor, and VS Code: https://benchline.fabwaseem.com/mcp/guide

## Questions

### Which pages can I fetch?

Public http and https URLs. Local, private, and link-local addresses are refused.

### What is removed?

Scripts, navigation, and other chrome when Readability can find the article. The Markdown is the article, not the whole page.

### How large can the page be?

The fetch stops at 800 KB. Larger responses are refused.

### What is the token count?

An o200k_base count of the Markdown.

## Related tools

- [Markdown HTML](https://benchline.fabwaseem.com/t/markdown-html): Convert Markdown to HTML, or HTML back to Markdown, with a live preview.
- [Meta tags inspector](https://benchline.fabwaseem.com/t/meta-tags-inspector): Read title, description, canonical, robots, Open Graph, Twitter, and JSON-LD types from one public URL.
- [AI SEO checker](https://benchline.fabwaseem.com/t/ai-seo-checker): Score crawler access, llms.txt, structured data, and the on-page signals AI search uses.
- [llms.txt generator](https://benchline.fabwaseem.com/t/llms-txt-generator): Read a public sitemap and write an llms.txt index, plus an optional llms-full.txt.
