Dad’s Data formats tools

JSON Formatter & Beautifier

Pretty-print or minify JSON instantly — 100% local, nothing uploaded.

JSON Input
Formatted JSON

Formatted output will appear here.

Paste, upload, or drop a file in the input panel to get started.

JSON Formatting Reference

Beautifying (pretty-printing) JSON adds indentation and newlines to make it readable — useful when inspecting API responses, debugging, or reviewing code. Minifying removes all insignificant whitespace outside string values, reducing payload size. For a typical real-world JSON response, minification saves 15–30% of bytes before any compression.

Compact JSON → Pretty-printed
Input
{"user":{"id":1,"name":"Alice","email":"[email protected]"},"active":true,"tags":["admin","editor"]}
Output
{
  "user": {
    "id": 1,
    "name": "Alice",
    "email": "[email protected]"
  },
  "active": true,
  "tags": [
    "admin",
    "editor"
  ]
}

Valid JSON Syntax

TypeExampleNotes
String"Hello, world"Must use double quotes — single quotes are not valid JSON
Number42 or 3.14 or -7No hex (0xFF), no leading zeros (07), no NaN, no Infinity
Booleantrue or falseLowercase only — True and False are not valid
NullnullLowercase only — undefined is not a JSON value
Array["a", 1, true]Ordered; no trailing comma after the last element
Object{"key": "value"}Keys must be double-quoted strings; no trailing comma
Warning: JSON does not support comments. Remove // ... or /* ... */ before pasting.

Common Formatting Errors

ErrorCauseFix
Trailing commaComma after the last element in an array or objectRemove the final ,
Comment// or /* */ annotation inside JSONStrip all comments — JSON has no comment syntax
Single-quoted stringUsed ' instead of "Replace all single quotes with double quotes
undefined valueJavaScript undefined used as a valueReplace with null — JSON has no undefined
NaN / InfinityNon-finite JavaScript number used as a valueReplace with null or a string representation
Unquoted keyObject key written without double quotesWrap the key in double quotes: "key": value

Frequently Asked Questions

Your files stay on your computer. Dad promised.

Data formats tools

Search the Data formats tools