Token counter
Paste your text to count its tokens, words, and characters. The count is an estimate for GPT-style models. Free, with no signup, and your text stays in your browser.
Tokens (GPT-style)
0
Words
0
Characters
0
Rough estimate (chars ÷ 4)
0
Token counts come from the GPT-style tokenizer and are approximate for other model families. The character-based estimate is a quick rough check, not a count.
Why token counts matter for AI agents
Language models have a context window, which is the maximum number of tokens they can read in one request. Long documents, system prompts, and chat history all use that space, and tokens are also how many AI APIs bill you.
Knowing your token count helps you decide how much content to put in a knowledge base, how to split long documents into chunks, and how much a prompt will cost to run. Check your model provider's documentation for current context limits and pricing.
Frequently asked questions
- What is a token?
- A token is a chunk of text that a language model reads as a single unit. It can be a whole word, part of a word, a punctuation mark, or a space. Common words are usually one token, while long or unusual words split into several.
- Why does the token count differ between models?
- Each model family uses its own tokenizer, which splits text differently. This tool uses a GPT-style tokenizer, so counts for other models, such as Claude or Gemini, can differ. Treat the result as an estimate for those models.
- Does this tool send my text anywhere?
- No. The counting runs in your browser. Your text is not uploaded or stored.
- How many tokens is a typical page?
- As a rough rule, one token is about four characters of English text, or about three-quarters of a word. A 1,000-word article is usually somewhere around 1,300 tokens, depending on the content.
Train an agent on your content
Doupple builds an AI support agent from your PDFs, URLs, and text, and deploys it with one script tag. Free plan, no credit card.
Start for free