Nothing yet — inputs you run here are remembered on this device.
Nothing yet — inputs you run here are remembered on this device.
Updated 2026-08-19
Count LLM tokens online for free. Paste any prompt and SnapTools shows how many tokens it uses with the GPT-3.5 / GPT-4 tokenizer (cl100k_base), alongside character and word counts — instantly, in your browser. Your text is never uploaded, so it is safe for confidential prompts.
Language models measure everything in tokens: the context window is a token budget, and API billing is per token. Because tokens do not map neatly to words — a rare word or a snippet of code can split into several — counting characters or words is not enough. This tool gives you the real token count so you can fit within a model's limit and estimate cost before you send.
The quick brown fox jumps over the lazy dog.
10 tokens · 44 characters · 9 words
tokenization
2 tokens · 12 characters · 1 word
curl -X POST https://thesnaptools.com/api/v1/tools/llm-token-counter \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"The quick brown fox jumps over the lazy dog."}'