Skip to content

JSON Formatter

Format, validate, minify, and sort JSON — fast, private, and in your browser.

0/500,000

Output

How to use

  1. Paste your JSON into the input box, or upload a .json file.
  2. Select your preferred indent style (2 spaces, 4 spaces, or tabs).
  3. Click Format to beautify, Minify to compress, Validate to check syntax, or Sort Keys to alphabetize.
  4. Review the output and stats, then copy the result with one click.

Examples

Minified input

{"name":"example","items":[1,2,3],"active":true}

Formatted output

{
  "name": "example",
  "items": [1, 2, 3],
  "active": true
}

FAQs

Related tools

Command Palette

Search for a command to run...