Paste text and see instant token count. OpenAI models (GPT-4o, GPT-4) use tiktoken. Claude (Sonnet, Opus, Haiku) are approximations. See real-time cost estimates. No signup. No limits.
Paste Your Text
0
Tokens
0
Characters
0
Words
$0.00
Est. Cost
ℹ️ How Tokens Work: Tokens are small text chunks (~4 chars). Most words = 1 token. Long words/code = 2-4 tokens. OpenAI counts use tiktoken (very close to official). Claude counts are approximations.
2026 Model Pricing
OpenAI
GPT-4o: $0.005 / 1K in, $0.015 / 1K out
GPT-4: $0.01 / 1K in, $0.03 / 1K out
Claude (per 1M tokens)
Sonnet 5: $2 input, $10 output (intro pricing through Aug 31)
Opus: $3 input, $15 output
Haiku: $0.80 input, $4 output
💡 Tip: Use Anthropic Batch API for 50% discount on Claude tokens.
Legal Disclaimer & Accuracy Notice
⚠️ No Liability: This tool is provided "as-is" for informational and educational purposes only. We make no warranties or guarantees about accuracy, availability, or fitness for any particular purpose.
Accuracy Limitations:
OpenAI (GPT-4o, GPT-4): Token counts using tiktoken JavaScript library. Close to official but not guaranteed identical. Always verify on production with OpenAI's official tokenizer or API.
Claude (Sonnet 5, Opus, Haiku): Approximate counts (~text.length/4) and may differ from actual Anthropic tokenization. Use Anthropic's API for exact counts.
Cost estimates: Calculations are for reference only and may not reflect actual API billing. Pricing changes frequently. Verify current rates with official pricing pages.
Not Legal/Financial Advice: This tool does not constitute financial, legal, or professional advice. Cost estimates are informational only. Do not rely solely on this tool for budget planning, contract negotiations, or business decisions. Consult official documentation and rate cards for your use case.
No Warranties: We are not liable for:
Inaccurate token counts or cost estimates
API billing errors or unexpected charges
Loss of data or computational resources
Service interruptions or availability issues
Browser compatibility or performance problems
Third-party API changes or deprecations
Security & Privacy: This tool runs entirely in your browser. No text is sent to servers. However, we make no guarantees about browser security or third-party libraries (CDN tokenizers). Do not paste sensitive, confidential, or private data. You assume all risk.
Acceptance: By using this tool, you accept this disclaimer in full. If you do not agree, do not use this tool.