Token counter

Estimate the tokens of your text for ChatGPT, Claude or Gemini.

0Tokens (approx.)
0Words
0Characters

Rough estimate (~4 characters per token). The real number depends on each model's tokenizer.

How it works

1

Paste your text

Type or paste the content to measure.

2

Choose the model

ChatGPT, Claude or Gemini.

3

See the estimate

Approximate tokens and how much of the context it uses.

Why counting tokens matters

Language models don't read words but tokens: chunks of text about four characters long on average. Two things are measured in tokens: the context window (how much text fits in a conversation) and the cost of the APIs. Knowing how many tokens your text uses helps you stay under the limit and estimate spend.

This tool gives you a quick estimate for ChatGPT, Claude and Gemini, and tells you what percentage of each model's context window your text takes. It's an approximation meant to give you an idea, not an official count.

Frequently asked questions

Quick answers to the most common questions about this tool.

What is a token?
A token is the unit AI models (ChatGPT, Claude, Gemini) split text into. Roughly, one token is about 4 characters or three quarters of a word. Context limits and API costs are measured in tokens.
Is the count exact?
It is an estimate. Each model uses its own tokenizer and the real number varies a bit depending on language and content. It is more than enough to know if your text fits in the context or its rough cost.
Why does it change per model?
GPT, Claude and Gemini split text slightly differently, so the same text can give a somewhat different number in each.
Is my text sent anywhere?
No. The counting happens in your browser; your text never leaves your device.

More tools

Other free tools that run entirely in your browser.

🧊

3D printable QR

Create a QR code and download it as a printable 3D object (stand, keychain or plaque) in two colors.

🏠

Mortgage calculator

Work out your monthly mortgage payment, total interest and the full amortization table.

🎲

Name generator

Generate random names for usernames, gamertags, fantasy, brands or teams.

🔢

Word counter

Count words, characters, sentences and paragraphs, with reading time.

🔑

Password generator

Create strong, random passwords in your browser, with a strength meter.

🔤

Image to text (OCR)

Extract the text from a photo, screenshot or scanned document, in your browser.

🧾

PDF to JPG

Turn each page of a PDF into a JPG or PNG image. Download singly or as a ZIP.

📚

Image to PDF

Combine several photos or images (JPG, PNG) into a single PDF, in the order you want.

🖼️

Resize image

Change the size of your photos to any pixel dimensions, without uploading them.

🔄

Convert image

Convert between JPG, PNG and WebP, and turn iPhone HEIC photos into JPG.

🧹

Clean text

Remove Markdown formatting, invisible characters and emojis from AI-generated text.

📝

Markdown converter

Convert Markdown to HTML or text, and your formatted text or HTML to Markdown.

✍️

Fancy text

Turn your text into bold, italic, cursive and symbol styles to copy and paste on social media.

⏱️

Hours calculator

Add and subtract hours and minutes, and find the difference between two times.

Countdown

Create a live countdown to any date: a birthday, a trip, an event.

📈

Compound interest

See how your savings or investment grow with compound interest and regular contributions.

✒️

Sign PDF

Draw your signature and place it on a PDF. The document never leaves your device.

📏

Unit converter

Convert length, weight, temperature and volume: cm to inches, kg to pounds and more.