Start a project

Tool 43 of 425 · LLM tokens

LLM Token Estimator

Estimates token counts for text and shows how much of a model's context window it uses.

LLM Token Estimator

Your input

Result

MeasureValue

    01

    What it does

    Estimates token counts for text and shows how much of a model's context window it uses.

    • Estimates for English, code and CJK text
    • Characters, words and bytes
    • Context window fill with output reserve
    • Runs offline

    02

    Private by design

    Everything happens in your browser. Nothing you type, paste or upload is sent anywhere, and it keeps working offline once the page has loaded.

    03

    What you get

    Token estimates and context use, with a Copy and a Download button on every result.

    • Tokens
    • Context window
    • LLM

    Why it matters

    Prompts that overflow the context window get truncated or rejected, and API costs scale with tokens.

    This gives a quick estimate without sending text anywhere. Exact counts need the provider's tokeniser.

    How to use it

    1. Type or paste your input; the example shows the format.
    2. Press Estimate tokens. Results also update as you type.
    3. Read the summary line, then the table, notes or output below it.
    4. Copy or download what you need. Nothing leaves this page.

    FAQ

    How many tokens is a word?

    About 1.3 for English with modern tokenisers; code and other languages use more.

    Why reserve output tokens?

    The reply shares the context window with your prompt.

    Is my input uploaded?

    No. The tool runs in your browser and nothing you type, paste or open is sent anywhere.

    Can I rely on the result?

    It follows the public specification or formula named on this page and says where it simplifies. Check anything critical against the official tool or documentation before you ship it.

    Work with me

    Want a site that gets these right?

    I build fast, accessible websites and web apps that pass these checks from day one. Tell me about your project and I'll reply personally with honest next steps.

    All developer tools · Back to leej.uk