Minify JSON Without Uploading

Compact a JSON document by stripping whitespace. Ordinary JSON becomes a single line. JSON Lines (NDJSON) stays one compact value per line, which is handy for logs and streams.

This tool runs in your web browser: your files and text are processed on your device and are not uploaded to TidyKit servers. Free, no sign-up.

How to minify

1. Paste your JSON. 2. Copy the compact result.

A pretty-printed object with line breaks and spaces becomes `{"name":"Ada","age":36}`. A three-line JSONL file stays three lines, each minified.

If the input is invalid

The text must parse first. You will get an error rather than a half-minified file. Use the validator or the formatter to find the typo. The data never leaves this tab.

Frequently asked questions

Does minifying change the data?

No. It only removes insignificant whitespace. Keys and values stay the same.

Is my JSON uploaded?

No.

Can I pretty-print afterwards?

Yes. Use the JSON formatter (prettify) on the compact text.

What is JSONL support?

If the input is detected as JSON Lines, each line is minified separately and joined with newlines, instead of wrapping everything in one array on a single line.

More JSON Tools