A little context.
Parses then serializes JSON without formatting whitespace. Whitespace inside strings remains unchanged. Numeric precision follows JavaScript number semantics.
Preparing a compact JSON document
Minify a document when insignificant indentation is unnecessary, then compare its parsed structure with the original. Spaces inside a product description remain meaningful and must stay in the output.
Interpreting the result and avoiding mistakes
Minification is not compression or encryption. Server-side gzip or Brotli is a separate step. Very large numbers can change precision during parsing; encode identifiers as strings and retain the original file.
A reproducible workspace example
These are the starting values in the form above. The result below is calculated from these values when the page is built, using the same processing engine as the tool.
- JSON
{ "hello": "world" }
Calculated output
{"hello":"world"}Quick reference
{ "a": 1 } → {"a":1}How to use this tool
- Enter json in the workspace above.
- Select Run tool to process your input. Invalid values produce a message next to the form.
- Copy the result or download it as a file. Reset example restores the original input.