Free online tools · Browser-first utilities · No account required
Home / Developer Tools / JSON Pretty Print / Minify
Developer Tools

JSON Pretty Print / Minify

Pretty print or minify JSON from a single interface.

Using JSON Pretty Print / Minify

On this page
  1. Using JSON Pretty Print / Minify
  2. Input reference
  3. Continue your task

Choose formatted output for reading and minified output for transfer. Both operations parse the document before writing it back. Duplicate object keys may collapse, and long numeric identifiers can lose precision in JavaScript. Keep identifiers as strings when exact digits matter.

Example input

JSON document
{"name":"Mina","scores":[4,8],"active":true}

Example result

{
  "name": "Mina",
  "scores": [
    4,
    8
  ],
  "active": true
}

Read next · JSON Formatting Basics for Beginners

Input reference

JSON document
Enter multiline text. Field hint — Paste JSON here….
Output style: formatted or minify
Enter text. Field hint — Optional second value.
Report a correction

← Browse all 311 tools