How to Use the JSON Formatter: Steps and a Worked Example
Format and pretty-print valid JSON with two-space indentation. This guide shows what to enter, a worked example, and the limits to keep in mind. The JSON Formatter tool is free, needs no account and runs in your browser.
What you need
- Paste JSON, for example {"name":"InovoTools","status":"prototype"}
Step by step
- Open the JSON Formatter tool.
- Fill in Paste JSON.
- Read the result, which updates as soon as the inputs change.
Worked example
With these inputs:
- Paste JSON: {"name":"InovoTools","status":"prototype"}
the tool returns:
{
"name": "InovoTools",
"status": "prototype"
}
How it works
JSON.parse() followed by JSON.stringify(value, null, 2). Paste your JSON and the tool indents it with two spaces per level. If the JSON is invalid, you see the parser error instead so you can fix it.
Things to keep in mind
Validates JSON syntax, not an application-specific schema.
Related tools
If this is not quite what you need, try JSON Validator, JSON to CSV Converter or Base64 Encoder and Decoder.