Approximate Tokens, Words and Characters Calculator for LLM's

Tokens can be thought of as pieces of words. Before processing, the input is broken down into tokens that don't necessarily align with word boundaries.

For a detailed explanation of tokens and how to count them, see the OpenAI Tokenizer Guide.

How this calculator works

This calculator uses the following approximations based on English text:

Note: These are rough estimates based on testing with various tokenizers. Actual token counts may vary depending on the specific text and model used. For exact token counts, please use OpenAI's Tokenizer tool.

Calculate from Text

Note: All calculations are performed locally - no text leaves your browser.

Text processing:

Characters: 0
Words: 0
Tokens: 0

Calculate from Tokens

Words: 0
Characters: 0

Calculate from Words

Tokens: 0
Characters: 0

Calculate from Characters

Tokens: 0
Words: 0

Tool made by Denis Shiryaev, shir-man.com

Other LLM Tools

📄 Text File Merger for LLM

📝 PDF to TXT Converter

🗑️ HTML to TXT Converter

🤖 LLM System Prompt Generator