How to use
- Paste text or load the sample, then choose a tokenizer encoding.
- Run the tool and review the results and status messages.
- Copy the values you need or download the result for reuse.
Token Counter
Count text tokens locally with o200k_base or cl100k_base and inspect token IDs.
Processing runs in your browser. Your input and files are not uploaded to DevToolsy.
How it works
Counts apply to plain text with the selected encoding. Chat framing, tools and API billing are not included.
Hello, world! Build something useful.{
"encoding": "o200k_base",
"count": 8,
"ids": [
13225,
11,
2375,
0,
10885,
3543,
8316,
13
]
}Count text tokens locally with o200k_base or cl100k_base and inspect token IDs.
What to expect
Select a token to see its ID. Dots mark spaces. A token may contain only part of a UTF-8 character, shown as � in its individual preview.
Output
Copy the values you need or download the result for reuse.
256 KiB UTF-8 input. Preview: first 1,000 tokens. Complete IDs are included in copy and JSON export.
Frequently asked questions
Does this count equal an API bill?
Counts apply to plain text with the selected encoding. Chat framing, tools and API billing are not included.
Why can a token preview show �?
Select a token to see its ID. Dots mark spaces. A token may contain only part of a UTF-8 character, shown as � in its individual preview.
Is the input uploaded?
Processing runs in your browser. Your input and files are not uploaded to DevToolsy.
What are the processing limits?
256 KiB UTF-8 input. Preview: first 1,000 tokens. Complete IDs are included in copy and JSON export.
Can I keep the result?
Copy the values you need or download the result for reuse.