JSON Minifier
Strip whitespace and line breaks from JSON to produce the smallest possible valid output. Shows original size, minified size, and savings.
Press Ctrl+Enter to minify.
Why minify JSON?
Minified JSON removes all whitespace — spaces, tabs, and newlines — that is not part of string values. This reduces file size and speeds up data transfer between a client and server.
Typical use cases
- API payloads — smaller request/response bodies mean lower bandwidth costs and faster parsing.
- Embedded configuration — compact JSON takes up less space in environment variables or database columns.
- Build pipelines — minifying JSON assets as part of a build step can measurably improve Time to First Byte.
Privacy
Minification runs entirely in your browser using JSON.parse and JSON.stringify. No data is sent anywhere.