71 chars · 4 lines
Two-way sync · Edit either side and the other updates automatically.
71 chars · 4 lines
Two-way sync · Edit either side and the other updates automatically.
JSON minification guide
Paste valid JSON into the minifier above to remove indentation, spaces, and line breaks that are not part of string values. The compact result preserves the parsed data and is produced locally in your browser.
Minification removes formatting whitespace between JSON tokens, including indentation and line breaks. Spaces and escaped characters inside quoted string values remain part of the data.
The result is parsed and serialized as standard JSON, so objects, arrays, numbers, booleans, strings, and null values keep the same meaning.
Compact JSON is useful for request bodies, embedded configuration, fixtures, logs, and payloads where readability is less important than a smaller character count.
Invalid JSON cannot be safely minified. VetaTool first parses the complete input and reports syntax errors with position details when available.
Processing remains in the browser, so copied API payloads and configuration values are not sent to a minification service.
Readable indentation is removed while keys, values, array order, and string content remain unchanged.
{
"user": {
"name": "Ada",
"active": true
},
"roles": ["admin", "editor"]
}{"user":{"name":"Ada","active":true},"roles":["admin","editor"]}Common questions
No. Minification removes formatting whitespace outside strings and serializes the same parsed JSON values.
No. The input must first pass JSON syntax validation. Errors are shown with location and context details when available.
No. Spaces, line-break escapes, and other characters inside quoted strings remain part of the string value.
No. Validation and minification run locally in your browser.