Token Counter
100% in your browser · data never leaves your device
Count characters, words, lines and sentences, and estimate LLM tokens for popular model families — entirely in your browser. The paid API endpoint for agents is at POST /api/token-counter.
0
characters
0
chars (no spaces)
0
words
0
lines
0
sentences
0
bytes (UTF-8)
Estimated tokens by model
How to use
- Paste or type your text into the editor.
- Read the character, word, line and sentence counts.
- Compare estimated LLM tokens across model families.
- Copy the numbers into your prompt-budget spreadsheet.
Where it applies
- Staying inside a model context window before sending a prompt.
- Estimating API cost for a batch of documents.
- Checking article length for SEO or editorial limits.
- Agents budgeting prompts via the paid <code>POST /api/token-counter</code> endpoint.