Token Counter

Count text tokens locally with o200k_base or cl100k_base and inspect token IDs.

Text & Regex
Preparing your workspace…
Input
Output
Your result will appear here.

How to use

  1. Paste text or load the sample, then choose a tokenizer encoding.
  2. Run the tool and review the results and status messages.
  3. 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.

Before and after
Input
Hello, world! Build something useful.
Output
{
  "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.

Processing limits

256 KiB UTF-8 input. Preview: first 1,000 tokens. Complete IDs are included in copy and JSON export.

Further readinggpt-tokenizer
?

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.

Find your next tool

Language

Switch language? Your current work will be cleared. Copy or download it first.