PapaTools

Free JSON Minifier & Beautifier

Something not working? Report a problem

About the JSON Minifier

Minify JSON to strip whitespace or beautify it with indented formatting — with exact error location for invalid input, all in your browser with no upload.

How to use the JSON Minifier

  1. 1Paste your JSON into the input box.
  2. 2Choose Minify to remove all whitespace, or Beautify to add indented formatting.
  3. 3Any syntax errors are highlighted with the exact location.
  4. 4Click Copy to grab the result, or use the size comparison to see how much space you saved.

Frequently asked questions

How much does minifying JSON reduce file size?

It depends on the original formatting. Deeply indented JSON can shrink by 30–60% after minification since whitespace can dominate file size.

Does minification change the data?

No — only insignificant whitespace (spaces, tabs, newlines between tokens) is removed. Values, keys and data types are preserved exactly.

What indentation does Beautify use?

Two spaces per level, which is the most common convention for JSON.

Is my JSON uploaded anywhere?

No. The browser's built-in JSON.parse and JSON.stringify handle everything locally — nothing leaves your device.

More file converters

View all