Skip to main content

TOON vs JSON Token Savings Calculator

New

Paste a JSON payload and compare the estimated token count of pretty JSON, compact JSON and TOON to see how much a prompt would shrink.

toon vs jsontoken savingsllm token calculatorreduce prompt tokenstoon token count
Read the guide
Shortcuts:⌘ KSearch
FormatCharactersWords/symbolsEst. tokensSaved vs pretty JSON

Token counts are estimates: the larger of characters ÷ 4 and a word/symbol-piece count, averaged. Real tokenizers vary by model; use them to compare formats, not to bill.

Continue with:

Frequently Asked Questions

How are tokens counted?

They are estimated from characters and word pieces. Real tokenizers differ by model, so use the numbers to compare formats rather than to bill.

When does TOON save the most?

On uniform arrays of objects, where field names are declared once instead of repeated on every row.

Can TOON be larger than JSON?

Yes, for deeply nested or irregular data the saving can be small or negative.

Is the payload sent anywhere?

No, everything is computed locally.

Related Tools