Prompt / Markdown Token Counter & Context Window Budgeter
Measure prompt length, code-block overhead, and context window utilization across GPT-4o, Claude 3.7, and Gemini 2.5 — plus estimate token savings from stripping raw HTML.
Paste Prompt, Markdown, or Raw HTML
Token Count & Context Window Budget
| Context Window | % Used | Fill Bar | Status |
|---|
Cut Web-Context Token Bills by 70%+ with Page2MCP
Convert any live web page into clean, LLM-ready Markdown or MCP context in 1 click — stripping navbars, scripts, and HTML noise automatically.
Frequently Asked Questions
How accurate is a browser-local token estimator?
For English prose and Markdown, calibrated character/punctuation/CJK heuristics are typically within 5–10% of tiktoken (o200k_base) without downloading multi-megabyte vocabulary files.
Why does raw HTML waste so many LLM tokens?
HTML tags, inline styles, SVG attributes, and script blocks often account for 60–85% of a web page's tokens while adding zero semantic value for your LLM prompt.
How can I convert documentation sites into clean Markdown for Claude or Cursor?
Use a dedicated extractor like Page2MCP to strip DOM chrome and copy clean Markdown directly into your LLM or MCP server.