Instructions ยท AI Token Counter
- Open the HTML file in a modern browser. Review Security Check and select Continue.
- Paste text, open a UTF-8 TXT file, or select Open Sample. The count updates as you edit.
- Select o200k_base and enter an optional whole-number token budget. Text stays in the editor when you switch tokenizer.
- Open Token IDs to review the sequence or download it as a JSON array.
- 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.