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
- Escape JSON – Escape special characters in JSON
- Compare JSON – Find differences between two JSON objects
- JSON to CSV – Convert JSON to CSV format
- JSON to XML – Convert JSON to XML format
- Prettify JSON – Format and beautify JSON code
- Sort JSON – Sort JSON arrays by value or object keys alphabetically
- Stringify JSON – Convert objects to JSON string
- Validate JSON – Validate JSON code for errors