Token Counter

Estimate how many tokens a passage of text is likely to consume. This is a heuristic approximation, not a tokeniser: it does not download any model vocabulary, and it cannot give exact counts for a specific model version.

Text to analyse

Nothing leaves the browser. Counting is done locally with the heuristic described in the sidebar.

Estimates by model family

waiting
Characters
0
0 excluding spaces
Words
0
0 unique
UTF-8 bytes
0
0 bytes per character
Characters per token
—
mean value across the text
Detailed estimate

    Cost preview

    indicative

    Enter a per-million-token price to sanity-check a workload. Prices change often; these are your own numbers, not a quote from us.

    Input cost (one call)
    $0.0000
    using the mid estimate
    Total input cost
    $0.00
    1,000 calls