How it works
- Paste JSON or load a .json file in the input editor.
- Choose Format for readable indentation, Minify for compact output, Validate for a syntax check, or Sort keys for a stable key order.
- Review any reported line and column, then correct the input if needed.
- Copy the result or download it as a JSON file.
Practical example
The compact value {"active":true,"user":{"id":7}} becomes an indented structure without changing booleans, numbers, strings, arrays or object relationships.
Formula and explanation
Formatting JSON changes whitespace only. It adds indentation and line breaks so nested arrays and objects are easier to inspect; it does not rename keys or convert values. Minifying performs the inverse and is useful when every byte matters in a fixture or request body.
Validation uses the browser's JSON parser. JSON requires double-quoted property names and strings, has no comments, and does not allow trailing commas. When parsing fails, Cifrivo reports the position as a line and column and adds a practical suggestion when the error pattern is recognizable.
Sort keys recursively creates a stable alphabetical object-key order. Array order is never changed because it can carry meaning. All parsing and output generation happen on this device, so API responses, configuration and test fixtures are not sent to Cifrivo.