Format, validate, and minify JSON. Find syntax errors and prettify with proper indentation.
JSON formatting (or prettifying) adds consistent indentation and line breaks to raw JSON data, making it human-readable. Minifying does the reverse: removing whitespace to reduce file size for production use.
{
"name": "value",
"count": 123,
"active": true,
"items": ["a", "b"]
}Formula
Formatting adds whitespace, minifying removes it, and neither changes the parsed valueWhitespace = insignificant between tokens, which is why indenting and minifying are both lossless
Key order = not part of JSON semantics, though most parsers preserve it
Valid top level = any value, so a bare string or number is legal JSON under RFC 8259
Trailing commas = never valid, and the most common reason a hand edited file fails to parse
Did you know? JSON has no comment syntax, by design. Douglas Crockford removed comments because people were using them to hold parsing directives, so config formats that appear to allow them, such as tsconfig.json, are really JSON with C comments (JSONC) and need a tolerant parser.
Sources
Convert text to ASCII codes and back. Supports decimal, hex, binary, and octal formats.
Calculate required internet bandwidth based on devices and activities in your household.
Encode and decode Base64 strings. Convert text for data URIs, APIs, and safe data transmission.
Create CSS border-radius with visual controls for each corner. Generate circles, pills, and custom shapes.
Create CSS box shadows with multiple layers, live preview, and copy-ready code.
Preview how colors appear with different types of color blindness. Test accessibility for color vision deficiency.