Developer

JSON Formatter

Format, beautify & validate JSON data.

This free JSON formatter beautifies, minifies and validates JSON right in your browser. Paste text, upload a file, or drag one in. Formatting supports 2, 3 or 4-space and tab indentation, optional alphabetical key sorting, and one-click minify. Validate against a chosen specification — RFC 8259, 7159, 4627, ECMA-404 or the tolerant JSON5 superset. Invalid JSON is reported with the exact line and column plus a caret under the offending character. The built-in Auto-fix repairs the most common mistakes — trailing commas, comments, single-quoted strings and unquoted keys — so lightly-broken JSON becomes valid. A collapsible, syntax-highlighted tree view lets you explore large documents, and a stats bar shows byte size, key count and nesting depth.

Related tools