Data tool

JSON Minifier

Remove unnecessary whitespace to create compact JSON.

Fast browser processing Private — no uploads Free to use
HOW IT WORKS

Use JSON Minifier in three simple steps

1

Add content

Paste or import a UTF-8 file up to 5 MB, or load an example.

2

Choose options and process

Run the action below the editors. Review any error before continuing.

3

Copy or download

Use the current result. If you change the input or settings, process again first.

ABOUT THIS TOOL

JSON Minifier

Remove unnecessary whitespace to create compact JSON.

Yes. Only whitespace outside strings is removed. Number spelling, large IDs and whitespace inside strings are preserved.

FAQ

Frequently asked questions

Are values preserved?

Yes. Only whitespace outside strings is removed. Number spelling, large IDs and whitespace inside strings are preserved.

How is the saving measured?

Before and after sizes use UTF-8 bytes, not character counts. Already compact JSON may have no saving.

Is this tool free and private?

Yes. No account is needed, and your input is processed locally in your browser without being uploaded to FormatKit.