JSON minify

Minify and compress your JSON by removing unnecessary whitespace.

About JSON minify

Removes all unnecessary whitespace from JSON, producing the smallest equivalent text on a single line. Comments and trailing commas in JSON5 input are stripped too, so the output is always standard JSON.

When you would use it

How to use it

  1. Paste the JSON into the left field; JSON5 syntax with comments is accepted.
  2. Read the single-line result on the right.
  3. Copy it.

Things worth knowing

Frequently asked questions

Why did 1.0 become 1?
JSON numbers have no formatting; 1.0 and 1 are the same value, and the serialiser writes the shortest form. If the distinction matters, store the value as a string.
How do I make it readable again?
Use the JSON prettify and format tool, which indents the same data back into a multi-line layout.

All the tools