JSON Validator
Check whether JSON is valid and see exactly where and why it fails, with fix suggestions.
Open toolPretty-print, beautify and validate JSON with precise error locations, key sorting and custom indentation.
Paste or open JSON and get a cleanly indented version instantly. Choose 2 spaces, 4 spaces, tabs or minified output, and optionally sort every object’s keys alphabetically, which makes two JSON documents easy to compare.
If the JSON is invalid you get the exact line and column, the offending line with a caret, and a plain-English hint for common mistakes such as trailing commas, single quotes, unquoted keys and comments. Everything runs in your browser. Your data is never uploaded, logged or stored.
Your code or text
JSON, .json files up to 50 MB
Processed in this browser
Instant, in-browser. Nothing is uploaded.
Your result
Ready to download or copy
Paste JSON into the input, or open a .json file.
Pick an indentation style and, if you like, sort keys.
Copy the formatted result or download it as a file.
Zero-upload architecture
Free, with no sign-up or watermark · Your files stay on your device
Launch the app and add your file. There is nothing to install and no account to create.
Pick an indentation style and, if you like, sort keys.
Copy the formatted result or download it as a file.
Check whether JSON is valid and see exactly where and why it fails, with fix suggestions.
Open toolRemove whitespace from JSON to make it as compact as possible, and see how much space you save.
Open toolConvert YAML to JSON and JSON to YAML, including multi-document YAML files.
Open toolConvert JSON arrays to CSV, flattening nested objects into columns, ready for Excel.
Open tool