Skip to content
OperatorNest

Count tokens in your text

Count tokens in pasted text and estimate the input cost for a selected model.

Example: Sam, founder: Draft a Monday brief with three competitor updates for Sam. Hold any email to Priya at Brackenwold Studio for approval.

Your text

Paste a prompt, draft, or document excerpt. Counting happens in your browser.

Your text stays on this device. The tokenizer files load from this site when needed.

Characters119

Words20

Token counts

OpenAI counts use the named encoding. Other models use an estimate.

o200k_base OpenAI encoding · exact plain text
23
cl100k_base OpenAI encoding · exact plain text
23
Claude, Gemini, Llama, others Estimate · one token per four characters
30

Example counts shown.

Estimated input cost

Choose an API model to apply its input rate. Output tokens are excluded.

Input cost for this text$0.000002

23 o200k_base tokens × $0.1 per million input tokens. Check the model's tokenizer if it uses another encoding.

Model source: OpenAI model rates. Checked September 28, 2026.

Model data from models.dev (MIT).

Size a draft by its token count. Your operator can choose models per task across providers.

Embed this tool

Copy this snippet to show the tool on your site.

How it works

Characters count Unicode code points; words are groups of letters or numbers. OpenAI plain-text counts use the o200k_base and cl100k_base byte-pair encodings with local rank tables.

Other counts divide Unicode characters by four and round up. This planning estimate is especially weak for code and non-English text.

Input cost = displayed tokens × selected input rate ÷ one million. Each model shows its price source and checked date.

Sources and checked dates

Limits

  • OpenAI counts cover pasted plain text under the named encodings. They exclude chat wrappers, tool calls, images, audio, and provider billing adjustments.
  • Claude, Gemini, Llama, and other model counts use a rough character rule. Their actual tokenizers and billed usage can differ substantially.
  • Input cost uses the selected model's published US dollar rate and excludes output, cached input, batch discounts, and taxes.

Common questions

Are OpenAI counts exact?
o200k_base and cl100k_base count pasted plain text. Full API requests can add role, tool, image or other tokens.
Why are Claude and Gemini labeled estimates?
Those estimates divide characters by four. Provider tokenizers, language, code and formatting can change the actual count.
What does the cost include?
Displayed tokens × the selected input rate per million. Output tokens, provider discounts and minimums are excluded.

OperatorNest can take on repeat work, check with you before consequential steps, and leave a receipt for the result. See how an always-on operator works.

Hand off your first task tonight.

Tell us your email and what you'd hand off first. We'll send your access details and help you set up your operator.