JSON Formatter
The JSON formatter indents a JSON document so it can be read, reports the exact line and column of any syntax error, and can sort object keys alphabetically. Everything runs in your browser, so production payloads never leave your machine.
Your result will appear here.
Not sure where to start? Use Load example.
Results update automatically and are calculated on your device. Nothing you type is sent to a server.
Runs in your browser. Processing happens entirely in your browser. Nothing you enter is sent to Delimiter.live.
How to use the JSON Formatter
- Paste your JSON, or load a .json file from your device.
- Pick an indent width, and turn on key sorting if you want a stable order for diffing.
- If the JSON is invalid, read the error message — it names the line and column of the problem.
- Copy the formatted result or download it.
Example
{"b":2,"a":1}
{
"a": 1,
"b": 2
}
Common use cases
- Making an API response readable while debugging.
- Normalising two JSON files with sorted keys so a diff shows only real changes.
- Checking that a hand-edited configuration file is still valid.
- Preparing a fixture file for a test suite.
Limitations and things to watch for
- JSON numbers larger than the IEEE-754 double range lose precision, because JavaScript parses them as doubles. Very large integers such as 64-bit IDs should be transported as strings.
- Comments and trailing commas are not valid JSON and are reported as errors. Formats such as JSON5 or JSONC need a dedicated parser.
- Key order is preserved unless you enable sorting; duplicate keys keep the last value, matching the JSON specification.