What is this tool?
This tool formats (pretty-prints), minifies, sorts keys, repairs, and validates JSON data. It also supports tree view, table view, JSON Schema generation, and JSONPath queries. You can upload files or fetch JSON from URLs.
How to Use
- Paste JSON data in the input area or drop a file.
- Click 'Format' to pretty-print, 'Minify' to compress, or 'Sort Keys' to sort alphabetically.
- Use 'Repair' to fix invalid JSON (trailing commas, single quotes, comments).
- Switch between Text/Tree/Table/Schema views using the tabs above the output.
- Use JSONPath queries to search and extract data.
Examples
- Format a minified API response for readability.
- Minify JSON for smaller payload size.
- Sort keys alphabetically for easier diff comparison.
- Repair invalid JSON with trailing commas or comments.
- Extract specific data from large JSON using JSONPath queries.