Minify JSON API Responses for Production

2026-07-07 · 3 min read

Our API responses were pretty-printed with 4-space indentation in production. Development habit, production waste. I ran a typical 85KB response through Formly's JSON minifier — it dropped to 52KB. For an endpoint called 10,000 times a day, that is 330MB of saved bandwidth daily.

Minify in Production, Beautify in Development

Pretty-printed JSON for debugging. Minified JSON for production. Two modes, both available in our free online tool. Minify your JSON →

Sam Taylor Written by Sam Taylor — Full-Stack Developer. I build tools that solve real problems. More about me →