Check GPT input length
Measure text under the selected GPT encoding alongside character and UTF-8 byte counts.
Use an o200k_base or cl100k_base encoder to count tokens, characters, words, and bytes and estimate cost from an input-token price.
Measure text under the selected GPT encoding alongside character and UTF-8 byte counts.
Enter an input-token rate from your plan or documentation for a simple estimate.
Text and token calculations stay in your browser and are not sent to the OpenAI API for counting. The selected encoder code is loaded on demand as a QuickKit site asset.
The estimate applies only the input-token price you provide. It does not include chat-format overhead or tokenization used by other model families such as Claude or Gemini.