The smart toolkit to optimize JSON for Large Language Models.
Prune, compact, flatten, convert to natural language, and generate TOON-style context in one place.
Choose the transformation that best fits your prompt and payload shape.
See how each step reduces noise and makes JSON easier for LLMs to process.
A lightweight toolkit that helps AI developers optimize JSON payloads to reduce token consumption and lower LLM API costs.
TOON is a compact text format that represents arrays of objects as schema headers and rows, reducing repeated keys in prompt context.
Yes, the core library is open source and free to use. Sponsorships help keep development active.
Use prune() when your payload contains debug fields, metadata, IDs, or other low-value properties that should not be sent to an LLM.
Yes. The interactive demo runs directly in the browser, and the package can also be used in Node.js and modern JavaScript environments.
No. It focuses on structural optimization and removing noise, while preserving the core information needed by your model.