Paste prompt or data
Drop JSON, TOON, JSONL, YAML, CSV, or raw prompt copy.
Run real gpt-tokenizer BPE token encoding inside a local Web Worker — inspect token boundary segments and compare JSON vs. TOON costs with zero API calls.
Select text or data file
supports JSON, TOON, JSONL, YAML, CSV & plain text.json · .toon · .jsonl · .yaml · .csv · .txt
Zero upload limits · Runs in browser RAM
Exact o200k_base & cost report
{
"query": "Summarize quarterly revenue by region",
"rows": [
{ "region": "NA", "revenue": 184200, "growthPct": 14.2 },
{ "region": "EMEA", "revenue": 129500, "growthPct": 11.8 },
{ "region": "APAC", "revenue": 96400, "growthPct": 19.5 }
]
}Exact o200k_base & cl100k_base BPE counts + TOON savings| Property | JSON |
|---|---|
| File extension | .json |
| MIME type | application/json |
| Structure type | Hierarchical |
| Encoding | UTF-8 Text |
| Nesting support | Yes |
| LLM token efficiency | Low |
| Schema / typed | No |
| Best for | REST/GraphQL API payloads, nested web state, structured AI outputs, and universal cross-language interchange. |
Measure exact o200k_base and cl100k_base BPE tokens, context window share, API cost estimates, and TOON savings offline.
Drop JSON, TOON, JSONL, YAML, CSV, or raw prompt copy.
Switch between GPT-4o (o200k_base), GPT-4 (cl100k_base), Claude, and Gemini.
View token counts, context percentage, token boundary segments, and TOON comparison.
Shrink JSON arrays into Token-Oriented Object Notation (TOON) to cut GPT-4o and Claude prompt tokens up to 60%.
Strip null properties, empty arrays, and whitespace from API JSON payloads to cut LLM token costs while staying 100% valid JSON.
Anonymize emails, phones, IPs, cards, dates & amounts into reversible [[TYPE-NN]] tokens locally — then restore AI responses cleanly.
Never. gpt-tokenizer runs 100% locally in your browser Web Worker with zero network calls.
GPT-4o/o3 (o200k_base) and GPT-4 (cl100k_base) counts use exact BPE byte-pair tables; Claude and Gemini show calibrated estimates.
Yes. Keep Compare TOON token savings checked to preview side-by-side token savings automatically.