Format, check or minify JSON. Runs on your device.
Minifying is for the moment when JSON has to be small or on one line: a config value that goes into an environment variable, a payload you paste into a test request, or a file you want to keep short. This page opens with Minify selected. It removes the spaces, tabs and line breaks between the parts of the JSON and changes nothing else. The sample shows the size of that: formatted with 2 spaces it is 127 B, and minified it is 93 B, with the same keys, values and order. The page shows both sizes in the Size tile after you paste your own text. Be clear about what minifying is not. It is not compression, and it does not hide or protect the data, because anyone can format the text again in one click. Spaces inside a string are part of the value, so they are kept. Numbers and escapes are copied exactly as you wrote them.
It depends on how much indentation the text has. The sample goes from 127 B formatted with 2 spaces to 93 B minified. A text that is already on one line does not change. The Size tile shows the before and after sizes for your own text.
Yes. Only the spaces, tabs and line breaks between the parts are removed. Spaces inside a string are kept, and numbers such as 1.0 or 12345678901234567890 are not rewritten. Reading it back gives the same keys, values and order.
Yes. Choose Format and pick 2 spaces, 4 spaces or a tab. Because the page only changes spaces and line breaks, formatting a minified text gives the same layout as formatting the original.