AI Token Counter
Count the tokens in your text and estimate the API cost across GPT, Claude and Gemini models. Runs in your browser, no sign-up.
- Runs in your browser
- Nothing uploaded
- Free, no sign-up
Paste your text to count the tokens, then compare the estimated API cost across the main GPT, Claude and Gemini models. See a chart, export a CSV, or print a clean report. Everything runs in your browser.
Loading chart...
| Model | Input /1M | Output /1M | Est. cost |
|---|
How to Use AI Token Counter
- Paste your text. Drop a prompt or document into the box. The token, word, and character counts update as you type.
- Set output and requests. Enter how many output tokens you expect and how many requests, so the cost reflects real usage.
- Compare the models. The table shows the estimated cost for each GPT, Claude, and Gemini model, and you can sort by any column.
- Plan your budget. Use the cheapest model that fits your quality needs, or scale the request count to project a monthly bill.
Frequently Asked Questions
How accurate is the token count?
When the tokenizer loads, counts are exact for OpenAI models, which use the o200k tokenizer. Claude and Gemini tokenize a little differently, so their counts and costs are close estimates.
Is my text sent to any server?
No. The counting and the cost math run entirely in your browser, so your prompt never leaves your device.
What is the difference between input and output tokens?
Input tokens are what you send, such as your prompt and context. Output tokens are what the model generates. Providers price them separately, and output is usually more expensive.
Why do models cost different amounts?
Each provider sets its own price per million tokens, and larger or more capable models cost more. That is why the table lets you compare them side by side.
Are the prices up to date?
They reflect published rates as of July 2026. Pricing changes often, so check each provider for the latest before you commit to a budget.
What exactly is a token?
A token is a small chunk of text, very roughly four characters or about three quarters of a word in English, that models read and generate.
Related Tools
Character Counter →
Character Counter, graphemes, words, sentences, paragraphs, reading time. Tweet/SMS/Meta limit badges. Free, client-side, instant.
List Item Counter Online - Number Items →
Add counters to list items instantly. Number, letter, or roman numeral formats. Free, secure,…
PDF Page Counter →
Count pages in PDF files instantly. Free PDF page counter. Upload multiple PDFs, get…
Word Counter →
Count words, characters, sentences, paragraphs, lines, and estimated reading time.
Android AssetLinks JSON Generator - App Links →
Android AssetLinks JSON Generator files for Android App Links. Configure package names and SHA-256…
Convert ASCII to Binary →
Convert ASCII to Binary tool. Convert text to binary and binary to text. 100%…
Base32 Encoder/Decoder →
Free Base32 encoder and decoder tool. Encode or decode Base32 strings online. 100% client-side,…
Base58 Encoder/Decoder →
Free Base58 encoder and decoder tool. Encode or decode Base58 strings like Bitcoin addresses.…
Base64 Encoder and Decoder →
Base64 Encoder and Decoder - Convert text strings into Base64 format or decode Base64…
BBCode to HTML Converter →
Generate standard semantic HTML arrays translating classic forum BBCode syntax cleanly explicitly mappings independently…
Convert Binary to Hex →
Convert Binary to Hex tool. Convert binary numbers to hex instantly. 100% client-side, instant,…
Convert BSON to JSON →
Convert MongoDB BSON hex dumps to readable JSON in your browser. Free, offline, client-side…