TokenSave
A free browser tool for calculating AI prompt token counts and estimated API costs.
What does it do?
Paste a prompt to see token, character, and word counts and estimated costs update immediately. Select a model and adjust expected output tokens and monthly request volume, or enter a JSON array of chat messages to include tokens used by the message format. Token boundaries are color coded. GPT counts use an actual tokenizer in the browser; Claude and Gemini counts are shown as estimates. Entered text is not sent to a server.
Key features
- Calculates token, character, and word counts and estimated costs in real time as a prompt is entered.
- Calculates per-request and monthly costs from model prices, expected output, and monthly request volume.
- Includes message-format tokens when calculating from a JSON array of chat messages.
- Shows token boundaries in color.
- Calculates in the browser without sending entered text to a server.
- Available for free.