JSON compactor

Compact JSON without changing its data.

Remove unnecessary spacing from valid JSON.

Input

Result

About this tool

The JSON compactor removes spaces, indentation, and line breaks that JSON does not need. The values and structure stay the same, but the output takes less room. Use it to prepare a small API example, place JSON in a test fixture, or reduce the size of configuration sent between systems. It also makes a useful companion to the JSON formatter when you need to switch between readable and compact forms.