Live Playground

Convert JSON to TONL and see real token savings

Tests Passing
496
โœ“ 100%
Dependencies
0
Pure TS
Gzipped Size
8.84
KB

Try Examples

โญ Large Datasets (Best for Demo)

๐ŸŽฏ Common Use Cases

๐Ÿ—๏ธ Complex Structures

Quick Start

๐Ÿ’ก

Pro Tip: Test Type Hints!

Toggle types to see the difference in output size and validation capability

See type metadata difference

๐Ÿ“ฆ Compact (OFF) - Max Savings
employees[100]:
~44% savings
โœ… Validation (ON) - With Types
employees[100]{empId:u32,firstName:str,...}:
~39% savings (+ validation)

JSON Input

bytes ยท tokens ยท lines

TONL Output

bytes ยท tokens ยท
๐Ÿ”„

See how savings scale with data volume

/
1

Live Token Comparison

Real-time savings as you convert

JSON Format
tokens
100% baseline
TONL Format
tokens
Token Savings
vs JSON format
Saved Tokens
Up to 60% possible

Error