AI Tools

AI File Token Calculator

How many tokens is that PDF, Word file, spreadsheet, image, or code? Drop your files and see what they cost on GPT, Claude, and Gemini before you send them.

Count tokens in files locally

Runs locally in your browser. Files are read on your device, not uploaded, saved, or shared.

Add files to see their token cost.

Ready when you are.

Watch: count tokens in files

No sound. Each step is captioned on screen and also written out in the guide below.

Know the cost in three steps

  1. 01
    Drop your files

    One file or a batch: documents, images, data, and code together.

  2. 02
    Compare the providers

    See each file's tokens on GPT, Claude, and Gemini, and the total.

  3. 03
    Trim if needed

    Resize images, compact code, or send a document's text instead of the file.

How each file is counted

  • Text, code, CSV, JSON: tokenized exactly for OpenAI; estimated for Claude and Gemini.
  • Word, Excel, PowerPoint: their text, extracted the way you'd paste it.
  • Images: each provider's size rules.
  • PDF: per page. Claude reads each page as text plus an image (1,500–3,000 tokens a page); Gemini 3 charges 560 a page by default; OpenAI doesn't publish a figure.

Frequently asked questions

How many tokens is a PDF?

On Claude, typically 1,500 to 3,000 tokens a page, because each page is read as both text and an image. On Gemini 3 and later, 560 tokens a page by default. OpenAI also reads text and page images but doesn't publish a formula. Sending just the text, when the layout doesn't matter, usually costs far less.

Why are some numbers ranges?

Only OpenAI publishes its tokenizer, so only OpenAI's text counts are exact. Claude's and Gemini's are estimates from documented ratios, and PDF figures depend on how dense each page is. For exact numbers, use each provider's token counting API.

How are Word and Excel files counted?

By their text: paragraphs, table rows, and each sheet as comma-separated rows. That's what you'd paste into a chat, and what most AI apps extract. Images inside them aren't counted. Use "Copy text" to get that text.

Are my files uploaded?

No. Every file is read in your browser, and nothing is sent anywhere.