JSON Formatter
Format, validate and minify JSON instantly.
Format, validate and inspect JSON with confidence
Load an API payload or configuration snippet, catch parser errors, beautify it for review or minify it for transport—all without sending the data away.
—
JSON status
Waiting
root type
0 B
input size
JSON input
—Processed output
No output yetAbout the JSON Formatter
Format, validate and minify JSON to make it readable or compact, great for debugging API responses, config files and logs.
Invalid JSON is caught immediately with the exact parser error, so you can pinpoint and fix problems fast.
Formatting makes large payloads easier to scan and diff, while minifying removes whitespace to reduce size for storage or transfer.
Key features
- Beautify JSON with clean indentation
- Minify JSON down to a single line
- Instant validation with explicit parser errors
- Root type, entry count and byte-size inspection
- Local JSON file loading and processed-file download
- Processed locally - safe for sensitive data
How to use
- 1Paste JSON, load a local .json file or start with the API sample.
- 2Review the live validity, root-type and input-size indicators.
- 3Choose Format JSON for readable indentation or Minify for a compact payload.
- 4Fix any parser error shown below the workspace.
- 5Copy the result or explicitly download the processed .json file.
- 6Copy or download the formatted JSON after resolving any reported syntax error.
Examples
{"a":1,"b":[2,3]}{
"a": 1,
"b": [2, 3]
}Indentation and line breaks are added so the JSON is easy to read.
{
"a": 1
}{"a":1}All whitespace is stripped to make the JSON as small as possible.
Frequently asked questions
- Does it validate JSON too?
- Yes. If the JSON is invalid, the exact parser error is shown so you can fix it quickly.
- What is the difference between Format and Minify?
- Formatting adds indentation and line breaks for readability; minifying removes all unnecessary whitespace to make the JSON as small as possible.
- Is my JSON sent to a server?
- No. All formatting, validation and minifying happen locally in your browser, so it is safe for sensitive data.
Helpful guides
Continue your workflow
Open a related tool to prepare your files or refine the finished result.
