OutageSpot

JSON Validator, Formatter and Minifier

Check JSON syntax, format it for easy reading, or minify it for a compact result.

Your JSON stays in your browser. It is not uploaded or saved. Formatting and minifying rewrite the input; large numbers may lose precision.

What Is JSON?

JSON (JavaScript Object Notation) is a text format used for configuration files, APIs and exchanging data. Valid JSON can be an object, an array, a string, a number, true, false or null.

Common JSON Syntax Errors

IssueHow to fix it
Single quotesUse double quotes around property names and strings.
Trailing commasRemove the comma after the last item in an object or array.
Missing punctuationSeparate properties with commas and names from values with colons.
CommentsRemove comments. Standard JSON does not support them.

How to Use the Validator

Validate JSON: Check syntax without changing your input. Syntax errors include the browser's explanation and a location when available.

Format: Validate and indent JSON with two spaces. Minify: Validate and remove unnecessary whitespace. Both use JavaScript's JSON parser and serializer, which can round large numbers and collapse duplicate object keys.

Copy: Copy the current input. Clear: Remove the input and validation message.

This tool checks JSON syntax. It does not validate against a JSON Schema or confirm that configuration values are correct for a specific application.

Related Tools