Interactive Demo

Paste your JSON below and explore all features in real-time

TokenWise npm: resolving latest...
JSON Input
Start with the example below, then edit or replace it with your own valid JSON. Every feature tab uses the current editor value.
Features & Output
Inspect the input size and structure without transforming the data.
Input overview
Enter valid JSON to inspect
Developer snippet
Enter valid JSON to generate a snippet
See the compacted result and estimated savings for the current JSON.
After (Compact)
Enter valid JSON to compact
Analysis
Enter valid JSON to compact
Developer snippet
Enter valid JSON to generate a snippet
Flatten nested objects into a dot-notation view for the current JSON.
After (Flatten)
Enter valid JSON to flatten
Analysis
Enter valid JSON to flatten
Developer snippet
Enter valid JSON to generate a snippet
Remove noise such as ids, debug fields, and internal metadata before prompting an LLM. Change these options, then apply the current JSON to compare the result.
Prune options
Keys are detected from the current JSON. Technical keys are recommended automatically.
Select one or more rules; changes update Prune immediately.
After (Prune)
Enter valid JSON to prune
Analysis
Enter valid JSON to prune
Developer snippet
Enter valid JSON to generate a snippet
Convert the current JSON into natural-language context and compare the result size.
After (Natural)
Enter valid JSON to convert
Analysis
Enter valid JSON to convert
Developer snippet
Enter valid JSON to generate a snippet
Turn object arrays into a compact TOON-style layout and inspect how much structure it preserves.
After (TOON)
Enter valid JSON to convert
Analysis
Enter valid JSON to convert
Developer snippet
Enter valid JSON to generate a snippet