AI Token Counter by Klipto

Estimate how many tokens, words, characters and lines your text uses before you send it to ChatGPT or Claude. Free, in your browser, or count as you paste with Klipto on your Mac.

0
~ Tokens
0
Words
0
Characters
0
Lines

100% in your browser. Nothing is uploaded, logged, or stored.

A token counter tells you roughly how many tokens your text will use before you send it to GPT, Claude or Gemini. Paste a prompt in the box above and you get a token estimate next to characters, words and lines, live as you type. Everything runs in your browser, so nothing is uploaded, logged or stored, and there is no API key to paste.

The estimate here is characters divided by four. That is the standard shortcut for English, and it is a planning figure rather than a billing figure. No real tokenizer runs on this page, and I would rather say so at the top than let you find out from an invoice.

Meet Klipto

Count tokens where you write, not in a browser tab.

Klipto is a native macOS clipboard manager. Copy any text and its preview panel shows characters, words, lines and an estimated token count — right where you paste, offline.

See what Klipto does

What is a token, and why count one

A token is a sub-word unit of text. Models split writing with Byte Pair Encoding (BPE), an algorithm that merges frequent byte pairs into reusable pieces, so "encoding" can become "encod" and "ing". The split is reversible and lossless. Each token averages about four bytes of English, which is where the four-characters shortcut comes from.

Context windows are the first reason to count. Every model caps how much text it holds at once, and in 2026 the ceilings are large: Claude's Opus class and Sonnet 4.6 reach 1M tokens, GPT-5.5 and 5.4 take 1M input with 128K output, Gemini 3.1 Pro handles 1,048,576 input tokens, and Llama 4 Scout advertises 10M. A million tokens is roughly 750,000 words, or about 3,000 pages.

Advertised ceilings are not effective ceilings. Independent 2026 testing found recall slipping around 600K to 700K tokens, with GPT-5.5 near 74% and Claude near 76% accuracy at the 1M mark. A counter tells you whether the prompt fits. Whether it fits comfortably is your call.

Cost is the second reason. APIs bill per token on both input and output, so a 500-word reply costs about 670 output tokens on top of whatever you sent. A long system prompt or a pasted-in codebase runs the bill up quietly, and a count before you send is the cheapest check available.

Why the same text gets different counts

Klipto shows the same four counts under the paste preview on every copy, offline, using the same characters-divided-by-four estimate. It is not a BPE tokenizer either, and it does not pretend to be one. What it saves you is the round trip: the count is already on screen next to the text you are about to paste.

The counter shares the preview with the transforms, so a prompt can be cleaned and counted in one pass. Trimming invisible characters and duplicate blank lines out of pasted AI output usually moves the number more than rewording does.

Each model family ships its own tokenizer and vocabulary. GPT-3.5-Turbo and GPT-4 use cl100k_base, a roughly 100k-token vocabulary. GPT-4o and the o-series use o200k_base at about 200k, which packs English into fewer tokens and gains most on multilingual and technical text. Anthropic does not publish Claude's tokenizer at all, and there is no installable library for it, so the only exact source is the API's count_tokens endpoint.

The gaps are wide enough to matter. One Spanish passage cost 30% more tokens under o200k and 56% more under cl100k than its English baseline. A JavaScript snippet came to 140 tokens on cl100k and 149 on o200k, because the newer encoding is slightly worse for code. English prose runs about 0.75 words per token, code drops toward 0.5, and numbers or non-Latin scripts get denser still.

Read the number above with that in mind. Four characters per token is close for English prose and loose for code, JSON or Chinese. When money or a hard context limit depends on the exact figure, call the provider's own tokenizer or endpoint. For "will this fit" and "roughly what will this cost", the estimate answers in a second.

Using it

1. Paste or type text in the box above.

2. Read the four counts as they update. Characters and words are exact, lines counts your line breaks, tokens is the estimate.

3. Clear the box and paste the next chunk. Nothing was sent anywhere.

This free tool vs Klipto

This free web toolKlipto
Token estimate, characters, words, linesYes, in a tabYes, in the paste preview
Estimation methodCharacters ÷ 4Characters ÷ 4
Appears without being askedNo, paste into the page each timeYes, on every copy
Where it worksThis page onlyAny app you copy from
Needs a browser tabYesNo
Clipboard history, Stack, 20-plus transformsNoYes
PlatformAny browsermacOS 14+
PriceFreeFree tier, $19.99 one-time

Neither one replaces a real tokenizer, so the honest difference is where the number appears. On this page you go and fetch it. You can get it automatically on every paste with Klipto instead, which puts the count under the text you copied, in whatever app you are working in, without a network request.

Frequently asked questions

What is a token in AI?

A token is a sub-word unit of text that a language model reads. Byte Pair Encoding produces them by merging frequent byte pairs, so one word can become several tokens. Models bill and remember in tokens rather than words.

How many tokens is 1000 words?

About 1,333 tokens of English prose, using the ratio of 100 tokens to 75 words. Going the other way, 1,000 tokens is roughly 750 words. Code and non-English text pack denser, so treat both figures as estimates.

How many characters are in a token?

Around four for English text, which is why dividing your character count by four gives a usable estimate. The true figure moves with the model's tokenizer and the kind of content, from about 0.75 words per token for prose down to 0.5 for code.

Is this count exact?

No. Every number in the token field is an estimate at four characters per token, for all models including OpenAI's. Characters, words and lines are exact. For an exact token count, use the provider's tokenizer library or Anthropic's `count_tokens` endpoint.

How do I count tokens for ChatGPT, Claude or Gemini?

Paste the text and read the estimate, which is the same for all three here. For exact numbers, OpenAI publishes its BPE encodings (cl100k_base, o200k_base) as a library, while Claude's tokenizer is unpublished and only its API endpoint returns the real count.

Why do different models give different token counts?

Each family has its own tokenizer and vocabulary. GPT-4 uses cl100k_base, GPT-4o uses o200k_base, and Claude's is not published. The same text can differ by 25% to 50% or more between them, especially in code or a language other than English.

Which model has the largest context window?

In 2026 Llama 4 Scout advertises 10M tokens. Claude's Opus class and Sonnet 4.6 reach 1M, GPT-5.5 takes 1M input, and Gemini 3.1 Pro handles just over 1M. Effective limits are lower, since recall often slips past 600K to 700K.

Is my text private?

Yes. The counter runs entirely in your browser, with no account and no API key, so nothing you paste is uploaded, logged or stored on a server. Close the tab and the text is gone.

Is there a length limit?

No practical one for normal prompts, and the page works in any modern browser, including on a phone. Very large documents count fine, and the token figure stays an estimate at any length.

Get Klipto for Mac

Free for 14 days · no card, no account required · 5 MB

Download Klipto