Skip to content

Search

Articles, tools, solutions and knowledge base guides

Start typing to search across articles, tools and apps.

AI Token & Context Calculator

Tokens counted with o200k_base and cl100k_base

Tokens, bytes and characters of each part of a request, and a plan of that request against the context window

Tool Web
Official product page Publisher: POLPROG
Official product page
2
Tokenizers
5
Request parts
3
Counts per text
0
Characters of text sent to a server
01AI Token & Context Calculator

About

AI Token & Context Calculator plans one request to a language model. The request is split into its parts: system instructions, conversation history, retrieved documents, the current user request and tool definitions. Each part is counted, and the total is set against the context window with a reserve for the output.

A verified tokenizer

The tokenizer is a byte-level BPE written for this tool and checked token for token against OpenAI’s tiktoken on multilingual text, emoji, code, JSON and whitespace. The rank tables load only when the planner is used, and each file is checked against a SHA-256 checksum before it is read.

What is shown

  • Tokens, bytes and characters of every text part.
  • Counts typed directly for parts that are not pasted.
  • The share of the window each part takes, and the room left after the output reserve.
02Use case

What it solves

The problem
  • Word and character counts are poor guesses of token counts, especially outside English
  • A long history or many retrieved passages can push a request past the context window
  • Online token counters send the pasted text to a server
The outcome
  • Token counts equal to tiktoken, computed in the browser
  • Each part of the request measured against the window
  • Text never leaves the device, not even in the share link
Who it is for
  • Developers building applications on language models
  • Prompt authors working within context limits
  • Teams that cannot paste text into outside services
03Key Features

Key Features

The most important capabilities, explained in practical terms.

Two tokenizers

o200k_base and cl100k_base, equal to tiktoken on multilingual text, emoji, code and JSON.

Five request parts

System instructions, history, retrieved documents, the user request and tool definitions.

Tokens, bytes and characters

Three counts for every text part, so the cost of non-English text is visible.

Context plan

The share of the window each part takes and the room left after the output reserve.

Model windows

Context windows from the POLPROG model catalogue, with the tokenizer named only where it is confirmed.

Private sharing

A share link and a JSON export that carry counts and settings, never the text or token IDs.

04Download

Product access

A clear path from the official source to your first successful workflow.

Choose the right platform

Use one of the official links available for your device or browser.

Install or open

Follow the store instructions or open the web application. No third-party installers.

Configure and begin

Review the options, choose your preferences and start with the core workflow.

05Technology

Technology behind the product

A transparent look at the core technologies used to build and maintain this product.

TypeScript
06Security

Privacy & Security

Privacy first: processed on your device wherever this product allows it, and the network is used only when a feature needs it. No unnecessary data collection.

Text is tokenized in the browser
Share links and exports carry counts only, never text
Tokenizer files are checked against SHA-256 checksums
No account needed