Token counter for Claude, GPT and Gemini

Paste a text and see how many tokens it has in each model and what it would cost. No sign-up.

Free toolsfree tool by MerlinUpdated November 10, 2026

counter · paste your text
0 characters · 0 words

Or drop a .txt or .md file on the box.

Token counter
ModelTokensInput cost (about)If it were the reply (about)
Opus 5.5estimate 0 — —
Sonnet 5.5estimate 0 — —
Haiku 5.5estimate 0 — —
Fable 5.1estimate 0 — —
GPT-6 Astraexact 0 — —
GPT-6.1 Solexact 0 — —
GPT-6 Lunaexact 0 — —
Geminiestimate 0 not in the price table not in the price table

Paste a text to see how much of the Claude Pro 5-hour window it uses.

Everything runs in your browser: the text never leaves it.

Cost from the calculator price table. "If it were the reply" is what it would cost for the model to write a text this long.

How accurate is the count?

Each company slices text its own way, so the same paragraph gives different numbers in Claude, GPT and Gemini. What is exact and what is an estimate:

  • GPT (OpenAI): exact. We use OpenAI's public tokenizer (o200k_base). The number is what the API would charge.
  • Claude (Anthropic): estimate. Anthropic does not publish its tokenizer, so the number here is an approximation (about 3.5 characters per token, range 3 to 4) and can be off in either direction. An exact count exists, through Anthropic's own endpoint; when it is switched on for this page, the badge next to the number changes from "estimate" to "exact".
  • Gemini (Google): estimate. Same rule as Claude: an approximation, badge says "estimate". We use Google's own rule of thumb, about 4 characters per token, range 3 to 5.

Cost comes from the calculator's price table and is always "about". The GPT count runs in your browser: the text never leaves it.

Frequently asked questions

Not by default. Anthropic does not publish the tokenizer, so the page estimates and shows an "estimate" badge. An exact count exists through an official Anthropic endpoint, which is also free. For checking whether your prompt fits, an estimate is enough. For billing, it is not.

Yes, and here it is an estimate, with a badge. Gemini CLI has a /stats command to see the usage of a real conversation.

Paste the text on this page and look at the GPT rows. The count is exact because OpenAI publishes its tokenizer, and it runs in your browser.

There are several libraries. To count inside your own code, OpenAI publishes its tokenizer as an open library, and for Claude Anthropic offers the count_tokens endpoint, at no cost. This page is for counting without coding.

Each model has its own "vocabulary" of pieces. Text in Portuguese, with accents, usually takes more tokens than the same text in English. The gap between models can be large, which is why we count them separately.

free tool by Merlin

Here you count one text. In Merlin, the count is live.

Here you count the text you pasted. In Merlin, the Usage screen counts what each agent actually read and wrote, in tokens and estimated cost, while it works.

Merlin Usage screen with the Claude and ChatGPT plans for the 5-hour and weekly windows
The Merlin Usage screen, on a sample project (the app is in Portuguese).

Put the pack to work.

Free download for Windows and Mac · free plan forever · in beta