Token Counter
See how many tokens a file or text uses before you paste it into an AI chat; nothing is uploaded.
Processed on your device. Nothing is uploadedHow to check
You can also paste CSV or JSON text with Ctrl+V (⌘+V on a Mac).
Pasted text stays in this tab and is never sent anywhere.
Check whether a document will fit in an AI chat before you paste it into ChatGPT, Claude or Gemini. Drop a PDF, Word, PowerPoint, Excel, CSV, JSON, TXT or Markdown file, or paste text, and see its tokens, words and characters. Files are first turned into text the way the AI-ready converters do it: a PDF's or Word document's text, a deck's slide outline, tables as Markdown. Tokens are counted with a standard tokenizer, the same one ChatGPT's recent models use; other models split text their own way, so for them the count is an estimate. Everything is counted in your browser and nothing is uploaded.
Why use Token counter
Private
Files and pasted text are counted by your own browser and never sent to a server or to an AI service.
Any document
PDF, Word, PowerPoint, Excel, CSV, JSON, TXT and Markdown are counted as the text you would actually paste.
Works offline
After you have counted once, pasted text is counted without an internet connection; files need it the first time you open each kind.
How it works: count tokens in a file or text
Add a file or text
Choose or drop a file, paste text into the box, or try a sample.
Read the counts
The number of tokens, words and characters appears at once.
Decide what to paste
If the text is too long for your chat, split it or keep only the parts you need.
What the token counter handles
- Files: PDF, Word (.docx), PowerPoint (.pptx), Excel, CSV, JSON, TXT and Markdown.
- Pasted text in any language, Arabic included.
- Counts: tokens, words and characters.
- Tokenizer: a standard tokenizer, the same one ChatGPT's recent models use.
- Tables from Excel and CSV are counted as Markdown tables, the form they take when pasted.
Token counter: what it can't do
- Counts for Claude, Gemini and other models are estimates, because each model uses its own tokenizer.
- Scanned PDFs hold pictures of pages and have no text to count; run OCR PDF first.
- Pictures are not counted, and very large files take a few seconds to read.
Token counter: questions
- Is my text uploaded?
- No. Files are read and counted by your own browser, on your device. Pasted text stays in this tab and is never sent anywhere, not to a server and not to any AI service. Nothing is saved on the site: no share links and no history.
- What is a token?
- A piece of text that an AI model reads as one unit: often a whole short word, part of a longer word, or a punctuation mark. Chat limits and prices are counted in tokens, not words.
- Is the count exact for ChatGPT, Claude and Gemini?
- It is counted with a standard tokenizer, the same one ChatGPT's recent models use. Claude, Gemini and other models use their own tokenizers, so for them the number is an estimate that is usually close but not exact.
- Why does my PDF show 0 tokens?
- It is probably scanned: its pages are pictures, so there is no text to count. OCR PDF adds a text layer, then you can count it here.
- Why do Arabic texts use more tokens?
- Tokenizers learn from text, and most of that text is English, so Arabic words are often split into more pieces. The same meaning in Arabic can take more tokens than in English.
- How can I make a file use fewer tokens?
- Paste only the part you need, and for data try JSON to TOON, which writes lists of records in a shorter form.
- How do I count the tokens in a PDF or Word file?
- Turn the file into plain text and run it through a tokenizer, the tool an AI model uses to split text into tokens. In OpenAnyDoc, drop the PDF, Word or other file and its tokens, words and characters appear at once, counted in your browser without uploading the file.
Why it's private: your files never leave your browser
Most online viewers upload your file to a server, so a copy of it leaves your device. OpenAnyDoc works the other way round: your browser reads the file and draws it on your screen. Nothing is uploaded, there is no account, and the file is gone from memory when you close the tab, so there is nothing for us to store, see or lose.
How we tell you about new features
Announcements are based on the release date shown to everyone, and nothing is stored on your device or sent anywhere.