KI-Token-Zähler
Free online ki-token-zähler. Process data instantly in your browser. No upload, no signup, fully private.
How to Use
- Paste or type your text into the KI-Token-Zähler input area above.
- Configure any format or mode options to generate the result in real time.
- Click Copy to copy the formatted result to your clipboard, or Reset to clear the workbench.
What is KI-Token-Zähler?
Der KI-Token-Zähler (German-language UI: Token zählen, Geschätzte Token, Kontextfenster-Auslastung) estimates Large Language Model (LLM) token counts for mixed Latin and CJK texts, breaks down character/word/sentence/line statistics, and compares usage against common GPT and Claude context-window limits.
How It Works
Clicking Token zählen calls zaehleTokens() (ki-token-zhler.tsx), counting total characters, non-space characters, words, lines, sentences, and CJK code points (U+4E00–U+9FFF, Hiragana/Katakana, Hangul). It averages a character heuristic (cjk / 1.5 + nonCjk / 4) with a word heuristic (words * 1.3 + cjk * 0.7) and computes context percentages for 4k, 8k, 128k, and 200k windows locally.
Common Use Cases
- Prompt-Längen vor API-Aufrufen abschätzen — check estimated token counts before hitting OpenAI or Anthropic endpoints
- Kontextfenster-Auslastung prüfen — view percentage utilization against GPT-3.5 (4k), GPT-4 (8k), GPT-4-Turbo (128k), and Claude 3 Opus (200k)
- Mehrsprachige Texte mit CJK einschätzen — account for denser CJK tokenization (~1.5 chars/token vs. ~4 for Latin text)
- Vertrauliche Prompts lokal zählen — estimate token budgets offline without pasting sensitive documents into external tokenizers
Technical Details
UI language: German. Heuristic (zaehleTokens): averages char-based (ceil(cjk/1.5 + nonCjk/4)) and word-based (ceil(words*1.3 + cjk*0.7)) estimates (non-BPE approximation). Compares against 4k/8k/128k/200k context sizes locally.
FAQ
Is this KI-Token-Zähler free?
Yes, completely free. No signup required.
Does this tool upload my data?
No. All processing happens locally in your browser. Your data never leaves your device.