How Tokenization Varies by Language
Token Ratios by Content Type
- English prose averages ~4 characters per token (~0.75 words/token).
- Vietnamese with diacritics uses roughly 1.4x to 1.6x more tokens than equivalent English text.
- Source code splits heavily on brackets, indentation, and symbols (~3.2 chars/token).
100% Private Local Counting
- Paste sensitive prompts, contracts, or source code safely: zero text leaves your browser.
- Check how much of each model's context window your prompt occupies before sending.