JSON Formatter, Validator, Viewer: Pick the Right Tool
Compare formatter, validator, viewer, minifier, and diff side by side, with the order to chain them when you're reviewing an API payload.
Which tool for which task
Five JSON tools cover most review work. Formatter for human-readable indentation, validator for strict syntax checking, viewer for exploring large payloads as a collapsible tree, minifier for over-the-wire compactness, diff for comparing two versions semantically.
Formatter vs repair vs validator
A strict formatter rejects the input on the first syntax error and stops. A smart-repair formatter tolerates common almost-JSON mistakes and then formats the cleaned text. A validator only checks — it doesn't rewrite. Pick by what the input looks like.
Tree viewer vs flat formatter
When the JSON is more than a few screens, a tree viewer beats a flat formatter — you collapse what you don't care about and focus on the part under review. The viewer also makes mismatched bracket pairs obvious.
The specs your tools enforce
Strict validators implement RFC 8259 and ECMA-404. JSONPath tools implement RFC 9535. JSON canonicalization (for signatures) is RFC 8785.
Recommended path
Use the tools in this order when you're reviewing an unknown JSON payload.
- 1. Tool: /json-viewer — explore the shape as a tree.
- 2. Guide: /guides/json-formatter-vs-json-repair — choose strict format vs repair.
- 3. Blog: /blog/json-viewer-vs-json-formatter — workflow tips.
- 4. Reference: /news/rfc-8259-json-standard — the grammar your validator enforces.
JSON repair guides
Topic hubs
Specific guides
- How to Decode Base64 Strings (and JWT Payloads)
- URL Encoding: Percent-Encode Query Parameters and Paths
- Convert YAML to JSON (and Avoid Indentation Errors)
- Convert JSON to CSV: Flatten an Array of Objects
- Convert JSON to XML: Root Elements, Attributes, and Arrays
- Escape JSON as a String Literal (and Decode Double-Encoded JSON)
- Fix Trailing Comma in JSON
- Fix Single Quotes in JSON
- Fix Unquoted Keys in JSON
- Repair LLM JSON Output
- Fix JSON Parse Error: Expected Property Name
- JSON vs JS Object Literal: The Key Differences
- Validate JSON Before API Requests
- JSON Formatter vs JSON Repair
- Fix JSON Unexpected Token Errors
- JSON to JavaScript Object Converter