OpenAI Token Counter and Context Budget Checker
Count plain text with OpenAI's cl100k_base or o200k_base encodings against a context budget you set. API message overhead and model limits aren't included; text stays local.
Maximum: 50,000 UTF-16 code units. Special-token spellings are counted as ordinary text.
Choose the encoding used by your model; this does not select a model.
Set your own comparison target; no model limit is looked up.
Token count
Counting text...