Skip to content
tools

GPT Token Count and Cost Calculator

Text
Token counts update as you type. Your text never leaves this browser.
Tokens
Select a model encoding.

Encoding: o200k_base

…
Tokens
Characters
100
Words
20
Bytes
183

Estimated cost: …(input only)

Counts follow OpenAI's tiktoken encodings. Other models such as Claude and Gemini tokenize text differently, so their counts may vary.