JSON Formatter, Validator & Minifier

Beautify, inspect syntax errors, sort keys, and compress JSON payloads instantly in your browser.

100% Client-Side • No Server Uploads
Ready 0 lines • 0 chars • 0 B

JSON Specification (RFC 8259)

JavaScript Object Notation (JSON) is a lightweight, language-independent data-interchange format. While derived from JavaScript syntax, RFC 8259 imposes strict formatting rules that frequently cause parsers to fail:

No Trailing Commas:

Unlike modern JavaScript, a comma after the final key in an object {"a": 1,} or array [1, 2,] is strictly invalid in JSON.

Double Quotes Required:

All string keys and string values must be enclosed in double quotes ("key"). Single quotes ('key') or unquoted keys will fail validation.