JSON Formatter
Format and validate your JSON.
Format and validate JSON, explore its tree, compare documents and query nested values. Copy or download the result from your browser.
- Prepare your input
Choose the relevant options using the controls below.
- Run your task
Adjust the controls below and inspect the preview.
- Use the result
Check the result, then use the available copy or download controls.
Limits per document: 1 MB UTF-8, 128 nesting levels, 50,000 values.
Formatted Output
Enter JSON to see the result.
JSON Formatter
Use this JSON formatter to read an API response, inspect a configuration file or compare two versions of a document. Formatting adds indentation; minifying removes unnecessary whitespace. Neither operation is a substitute for checking whether the data contains the values your application expects.
In Tree & analysis, expand objects and arrays, search for a value and inspect the selected branch. Use Schema with your own JSON Schema, Compare for two documents or Query to extract nested values. Each document is limited to 1 MB of UTF-8 data, 128 nesting levels and 50,000 values.
Features
- Format or minify JSON with indentation and key-sorting options.
- Search nested data in the tree and inspect a selected branch.
- Compare two JSON documents or check data against a supplied schema.
- Copy or download the result without executing the JSON as code.
How to use
- Paste JSON or upload a JSON file. For example, {"name":"Ada","active":true} is a valid object.
- Choose Format and an indentation size; fix any reported syntax errors before continuing.
- Open Tree & analysis to inspect fields, or choose Compare, Schema or Query for that task.
- Review the result, then copy it or download the JSON file.