Savvy Goose
Character Counter Text & Writing
Case Converter Text & Writing
Diff Viewer Text & Writing
Markdown Converter Text & Writing
Percentage Calculator Numbers & Time
Unit Converter Numbers & Time
Timestamp Converter Numbers & Time
Time Between Dates Numbers & Time
Barcode Generator Generators
QR Code Generator Generators
Base64 Encoder Data & Encoding
URL Encoder Data & Encoding
JWT Decoder Data & Encoding
Hash Generator Data & Encoding
Color Converter Data & Encoding
JSON Formatter Data & Encoding
Format Converter Data & Encoding
Regex Tester Data & Encoding
Browser Info Data & Encoding
Password Generator Generators
UUID Generator Generators
Image Resizer Generators
Slug Generator Generators
Lorem Ipsum Generators
No results found
Buy me a coffee
Savvy Goose

JSON Formatter

Pretty-print, minify, and validate JSON.

Pretty Minified
Pretty vs minified

Pretty: adds indentation & newlines so a human can read it. Use for debugging, configs, or commit-friendly fixtures.

Minified: strips every byte of whitespace. Use over the wire; it's smaller, gzips well, and parses identically.

Both forms are byte-for-byte equivalent to a JSON parser.

Input

bytes

Output

bytes

Valid JSON
Share
The URL below carries your JSON and settings. Anyone who opens it sees the same input.

Input is too long to include in the URL. Copy the formatted output to share instead.

Share URL

How to use the JSON Formatter

  1. Paste JSON.
  2. Pick pretty-print or minify.
  3. Errors point at the offending line and column.

Frequently asked questions

Are comments or trailing commas allowed?
Strict JSON allows neither. The parser reports the location of the first issue it hits.
Is my JSON sent to a server?
No. Parsing and formatting happen in your browser.

Made for free with