TokenSave logo TokenSave

TokenSave Data · Dataset

How many tokens is a PDF page? Claude vs Gemini vs Codex vs Cursor

Measured and written by · Updated . Disclosure: TokenSave gets no funding, credits or sponsorship from AI companies. All measurements use our own paid subscriptions.

One page of text costs 2,347 tokens as a PDF on Claude 5.5 but 728 when the same text is pasted (+222%). Gemini charges a flat 560 tokens per PDF page whatever is on it, so the same page costs 76% less there.

Measured 2026-10-18 · text, table and scanned pages · 1 to 10 pages · License CC BY 4.0 · Related: image token cost

DOI 10.5281/zenodo.23446565 · Also on Hugging Face · Kaggle · GitHub

Count the tokens in your own text → Paste your prompt and see tokens, characters and API cost on GPT, Claude and Gemini. Free and private: it runs in your browser. Input tokens for one page as a PDF or as pasted text on Claude, Gemini and GPT

Key findings

All inputs

Input tokens. GPT is shown for pasted text only (see method).

InputClaude Opus/Sonnet 5.5Claude Haiku 4.5Gemini 3.xGPT o200k
PDF, text, 1 page2,3472,115561–
PDF, text, 5 pages11,63110,4992,801–
PDF, text, 10 pages23,23620,9795,601–
PDF, table, 1 page2,4812,278561–
PDF, scanned image, 1 page1,6001,592561–
Same page pasted as text728503455461
Same table pasted as CSV text913720777629

Coding agents: Codex and Cursor

Same files, read from disk by a coding agent with the prompt “Read the file … and summarize its full contents in one sentence.” Each file sat alone in an empty folder; two runs per file. Numbers are total input tokens for the whole agent session, including cached tokens and the agent’s own instructions, so they are not comparable with the Claude and Gemini counts above. With no file at all the same setup used 15,070 (Codex) and 13,022 (Cursor) tokens.

FileCodex (gpt-6-luna)Cursor (free, Auto)
Same page as a .txt file29,92126,600
PDF, text, 1 page92,66876,220
PDF, text, 5 pages74,71078,624
PDF, text, 10 pages114,77681,750
Same table as a .csv file30,105 (1 of 2 runs failed)28,560
PDF, table, 1 page85,71076,704
PDF, scanned image, 1 page215,837 (failed)84,940 (wrong answer)

Method

Limitations

How to cite

Free to use, quote and republish with attribution under CC BY 4.0. Please link to this page.

TokenSave (2026). PDF token cost per page: Claude vs Gemini, and PDF vs pasted text [Data set]. Zenodo. https://doi.org/10.5281/zenodo.23446565

BibTeX

@misc{tokensave_pdf_token_cost_2026,
  author    = {{TokenSave}},
  title     = {PDF token cost per page: Claude vs Gemini, and PDF vs pasted text},
  year      = {2026},
  publisher = {Zenodo},
  doi       = {10.5281/zenodo.23446565},
  url       = {https://doi.org/10.5281/zenodo.23446565},
  note      = {Dataset, CC BY 4.0}
}

Embed the chart

Related

Questions or corrections: contact@jonhisking.com