OmniTool
中文

Token Counter

Paste any text and instantly see how many tokens it consumes, counted with the exact OpenAI BPE tokenizers — cl100k_base for GPT-3.5/GPT-4 and o200k_base for GPT-4o/o1. See characters, words and bytes too, then check the count against a model’s context window with a live progress bar. Everything runs locally in your browser.

🔒 Privacy: all processing happens locally in your browser. Nothing is uploaded.

Frequently asked questions

Is the token count accurate?

Yes. It uses the exact Byte-Pair Encoding tokenizers OpenAI ships (cl100k_base and o200k_base), so the count matches the API billing exactly.

Are my texts uploaded anywhere?

No. Tokenization runs entirely in your browser; the text never leaves your device.

Related tools