AI Token Counter
Count prompt tokens with the bundled o200k_base tokenizer. Compare with your token budget as you type, and inspect the token IDs on your device.
Source Text
Up to 128 KiB of UTF-8. Up to 4 KiB per uninterrupted run of whitespace or text. Pasted line breaks use LF.
Token Count
tiktoken 1.0.22 · vocabulary 446a9538
Exact Tokens0
Characters0
UTF-8 Bytes0
Paste text or open the sample to count tokens.
Enter a budget to see how many tokens remain.
Characters are Unicode code points. Tokens measure plain text.