Paste your JSON below and click Format
✎ Input
✓ Output
Paste JSON and press Format (or Ctrl+Enter) to see the tree view. ℹ️ Valid JSON typed in the input will auto-populate the tree when you click Tree View.
JSON → CSV (Array of Objects)
JSON → XML
JSON → YAML
JSON → TypeScript Interface
JSON A — Original
JSON B — Modified
Query Result

Supported: $ root, . child, .. recursive, [*] wildcard, [n] index, [?(@.key)] filter

Escape JSON → String
Unescape String → JSON
📋
Sort Keys A→Z
Alphabetically sort all object keys at every depth level.
🧹
Remove Null Values
Strip all null and undefined fields from the JSON recursively.
🧹
Remove Empty Strings
Clean up empty string values ("") from the JSON structure.
📄
Flatten JSON
Convert nested JSON into a single-depth key path structure.
🗝️
Extract Keys Only
Get a list of all keys from the JSON object.
📦
Extract Values Only
Get a flat array of all values from the JSON object.
🔢
Count All Keys
Count the total number of keys across all nested objects.
🎲
Random Sample JSON
Load a random complex sample to explore all features.