174 runs

JSON Formatter & Validator

Prettify, validate, minify, and fix JSON data instantly with tree inspection and error pinpointing.

Instructions:
Paste your raw or minified JSON string into the input area. Click "Format JSON" to beautify or "Minify" to compress.
Input Raw JSON 0 chars | 0 lines
0 chars

JSON Specification & Common Syntax Errors

Double Quotes Rule

Under RFC 8259, all JSON property names (keys) and string values must be enclosed in double quotes ("..."). Single quotes ('...') are strictly prohibited and will cause parsing errors.

Trailing Commas Trap

Unlike JavaScript objects, standard JSON does not permit trailing commas after the last element in an array or object. Clicking our Auto-Repair JSON button will automatically strip these invalid commas.

Supported Data Types

Standard JSON supports 6 data types: String, Number, Boolean (true/false), Null, Array, and Object. Functions, undefined, and dates are not native JSON types.