Public previewRAGSuite is open-source, self-hosted and EU-ready — and we build it in the open.See it live

Platform Platform overviewSee it in actionAI SearchAI AssistantAI Connectors & MCPIntegrationsQuality LoopAdministration & SecurityMobile app
Solutions IT & Platform teamsCompliance & Data ProtectionDevelopersAgencies & Partners
Sovereignty
References
Pricing
Resources Trust CenterEU AI ActSecurity & disclosureFree toolsOpen source & open coreDocumentation ↗API reference ↗GitHub ↗ReferencesBlogChangelog
Company AboutPartnersContact
Search See it live Book a demo
Free tools Developer & RAG

Token & Cost Visualizer

Paste any text to estimate its tokens, see how it splits, price it at your model’s rate, and check it against common context windows — entirely in your browser.

Runs in your browser No upload · no third-party calls Free · no sign-up · no tracking
1

Your text

Type or paste below — everything updates live.

Est. tokens
Characters
Words
Indicative cost (this text)

2

How it splits

Each coloured piece is one estimated token.

Fits in a context window?

Estimate, not the exact tokenizer. Real token counts depend on the model’s own BPE and vary ±10–20%. Coloured pieces approximate the split. For billing-critical numbers, verify with the model’s tokenizer. Context-window sizes are dated June 2026 — confirm with the provider.

About this tool

Good to know

Is the token count exact?

No — it’s a transparent estimate. A true count needs the specific model’s tokenizer (BPE), which we deliberately don’t call out to a third party. The estimate is typically within ~10–20%; for billing-critical numbers, check with the model’s own tokenizer.

Why approximate instead of the real tokenizer?

Real tokenizers ship large model-specific data and many tools send your text to a server to run them. Keeping it in-browser and dependency-free means your text never leaves the page — the whole point of these tools.

Roughly how many tokens per word?

For English, ~1.3 tokens per word (≈ 4 characters per token). Code, other languages and lots of punctuation push the ratio up.

Take it further

Want this guaranteed in your own infrastructure?

Get a copy of these results by email and see RAGSuite running on a setup like yours — citation-backed, self-hosted, EU-ready.

Tokens add up — predictability doesn’t have to.

RAGSuite runs on a flat self-hosted instance and supports local models via Ollama, so heavy retrieval context doesn’t turn into a runaway per-token bill.