Skip to content
AI Tools
Needs our serverThis tool has to send your input to Toolsda to work. See the Privacy page for retention.

URL to Tokens

Any public URL
Will it fit in ChatGPT?
Paste any URL. It's scraped server-side to clean Markdown (nav, ads, and boilerplate stripped), then counted for GPT-4o, GPT-5.6, Claude Opus/Sonnet 5, Gemini 3, and Llama — with a fit check against each model's context window, 20% reserved for the answer.

URL

Max pages

Scraped via Jina AI Reader through our edge function — clean Markdown, no ads, nothing stored.

Model

Result

Paste a URL on the left to see its token count and check whether it fits GPT-4o, Claude, or Gemini's context window.

What is Website / URL to Tokens?

URL to Tokens scrapes the main content from a webpage — stripping navigation, ads, and footer boilerplate — and counts how many tokens that content will use in an LLM's context window. As a rule of thumb, 1 token is roughly 4 characters of English text: a 1,000-word blog post runs about 1,500 tokens, a typical documentation page around 4,000, and a long Wikipedia article 8,000 or more.

How many tokens is a website?

Website typeAvg tokensFits in 8K?Fits in 128K?
Blog post, ~1,000 words~1,500 tokensYesYes
Docs page (React-docs style)~4,000 tokensNo — needs 16K+Yes
Long Wikipedia article~8,500 tokensNoYes
Full docs site, 10 pages crawled~40,000 tokensNoYes, but chunk it for RAG

Averages for plain prose — dense docs, code samples, or tables run higher.

Will this URL fit in ChatGPT / Claude's context window?

Every model reserves part of its context window for its own answer — filling the window to 100% with input leaves no room to respond. The standard practice: usable tokens = context window × 0.8, keeping 20% free. Current context windows: GPT-4o 128K (≈100K usable), Claude Opus/Sonnet 5 and Gemini 3.1 Pro ~1M (≈800K usable). Legacy 8K/16K/32K tiers still show up in search but are mostly retired from current frontier models.

Your page8K16K32K128K200K1M
1,500 tokensYesYesYesYesYesYes
4,000 tokensYesYesYesYesYesYes
8,500 tokensNoYesYesYesYesYes
40,000 tokensNoNoNoYesYesYes

8K — Small/legacy tier — some local and older API models · 16K — Legacy GPT-3.5 16K tier · 32K — Mid-size legacy tier · 128K — GPT-4o · 200K — Legacy Claude 200K tier · 1M — Current frontier models — GPT-5.6, Claude Opus/Sonnet 5, Gemini 3.1 Pro. Use the live fit checker above for this page's exact number against today's real models.

Raw HTML vs clean Markdown tokens — why clean saves tokens

Raw HTML carries navigation menus, ads, tracking scripts, and layout markup — none of which answers a question, all of which costs tokens. Scraping through Jina AI's Reader strips that noise and returns clean Markdown instead. Open the Optimization tab above (single-page scrapes only) to see this page's real before/after token count and saving percentage.

Best practices to make a website fit in the context window

  1. Use clean mode — scraping via Jina AI Reader already removes nav, ads, and footer noise by default.
  2. Crawl only the pages you need — set Max pages to 1 for a single article, not an entire site.
  3. Chunk for RAG — split a large scrape into overlapping windows (try 1,000 tokens per chunk, keeping each section's heading with it; adjust the size: ) via RAG Text Splitter.
  4. Reserve 20% for the answer — never fill a context window to 100% with input alone.
  5. Use a larger-context model when a documentation site is simply large — GPT-5.6, Claude Opus/Sonnet 5, and Gemini 3.1 Pro all run ~1M tokens.
  6. Strip links and images from the count when you only need the prose — the checkbox above does this instantly.

How website scraping to tokens works

Pasting a URL sends it to a stateless edge function (not stored, not logged as content), which fetches the page through Jina AI's Reader API and returns clean Markdown. With Max pages set above 1, same-site links found on that first page are crawled one level deep, up to the limit chosen. Every returned page is then tokenized in your browser with the same tiktoken encoder Token Counter uses, so a scraped page and pasted text always agree on the same model's count.

Related tools

  • File to Tokens — have a PDF or DOCX instead? Check its token count and context fit the same way.
  • Token Counter — count tokens for pasted text across the same nine models.
  • Docs to LLM — convert DOCX, PPTX, XLSX, MD, or HTML to clean Markdown and chunk it for RAG.
  • Smart Token Reducer — strip whitespace, filler, and formatting waste from any text.
  • Screenshot to LLM — a JavaScript-heavy page didn't scrape cleanly? Screenshot it instead.

Frequently asked questions