JSON Formatter & Validator
Pretty-print, minify and validate JSON with exact error locations, sorted keys and custom indentation.
100% Client-SidePaste or load JSON, then format or minify it — syntax errors are pinpointed by line and column.
How to use the JSON Formatter & Validator
- 1
Paste JSON into the input box or load a .json file from your device.
- 2
Choose the indentation (2 spaces, 4 spaces or tabs) and whether to sort keys alphabetically.
- 3
Click Format to pretty-print or Minify to strip all whitespace.
- 4
If the JSON is invalid, jump straight to the reported line and column to fix it.
- 5
Copy the result or download it as a .json file.
Frequently asked questions
More developer tools
Base64 Encode & Decode
Encode text or files to Base64 and decode Base64 back to text or a file. UTF-8 safe, with URL-safe mode.
JWT Decoder
Decode JSON Web Tokens to read the header and payload, check expiry, and verify HMAC signatures.
UUID Generator
Generate random v4 or time-ordered v7 UUIDs in bulk, and inspect any UUID's version and timestamp.
Missing a feature or tool?
Tell us what would make JSON Formatter & Validator more useful, or what to build next.