Skip to content

Token counter

Paste text or code to count tokens with the o200k_base encoding and see estimated token ranges for Claude and Gemini.

GPT models use OpenAI’s tiktoken o200k_base encoding for an exact count (GPT-5 models, GPT-4.1, GPT-4o, o3 and others). GPT-6 figures are estimates because its encoding has not been published. Claude and Gemini models have no public tokenizer. Exact counts require sending text to the provider’s API, so this tool estimates by character type and shows a range.

Characters

0characters

Excluding spaces and line breaks

0characters

Words

0words

English words

0words

Lines

0lines

UTF-8

0bytes

Share of context window

GPT token counts use o200k_base. Claude and Gemini use the upper estimate. Limits were checked against the providers’ API documentation in November 2026. ChatGPT, Claude and Gemini chat interfaces may offer smaller windows depending on your plan.

ModelLimit (tokens)Percentage used
with a custom limit

AI text preparation

No data