Local StudioAI TOOLS AI Token Counter
100% Offline Download Tool Tools Catalog

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.

Instructions

  1. Paste text, open a UTF-8 TXT file, or select Open Sample. The count updates as you edit.
  2. Select o200k_base and enter an optional whole-number token budget. Text stays in the editor when you switch tokenizer.
  3. Open Token IDs to review the sequence or download it as a JSON array.
  4. Imported TXT line breaks are measured as read. Editing uses LF. The tokenizer treats special-token markers as ordinary text.

Pasted or UTF-8 TXT text up to 128 KiB, with runs of up to 4 KiB of whitespace or unbroken text. Exact ordinary-text tokenization for the bundled o200k_base encoding.

Security Check

AI Token Counter

Count plain-text tokens with an embedded tokenizer.

  • Count Plain TextSee exact tokens for o200k_base, characters as Unicode code points, and UTF-8 bytes.
  • Compare a Token BudgetSee how many tokens remain or how many your text goes over. Change the budget without recounting the text.
  • Inspect Exact Token IDsReview the ordered IDs in the browser or download the full sequence as a JSON array.

Local Security Check

Checking This Tool

Checking the launch, browser policy, and resources.

    These checks cover this tool page. Website links open only when selected.

    File Access

    Choose a UTF-8 TXT file or enter text. The tokenizer and vocabulary are embedded. The input and counts stay in browser memory until you close the page, and the tool makes no network requests.