Questions and answers

What does minifying JSON remove?

Only the whitespace between values: spaces, tabs and line breaks. Strings, numbers and escape sequences stay exactly as written, so the data is the same, just smaller to send or store.

Will it fix invalid JSON?

No. Invalid JSON is not minified. The tool names the line and column of the first problem, such as a trailing comma or single quotes, so you can fix it.

Is my JSON sent anywhere?

No. It is minified in this browser tab, in a background worker for large documents, and never leaves your device.

  • JSON Formatter Format, validate and minify JSON, with the exact line and column of any error.
  • JSON Validator Check whether JSON is valid and see the exact line and column of the first error.
  • JWT Decoder Decode a JSON Web Token to read its header and claims, and check its signature with your key.
  • Regex Tester Test JavaScript regular expressions against text, see every match and group, and preview replacements.

More Developer tools