FullCalculator

JSON Size Calculator

Estimate JSON Size

Estimate the size of a JSON object based on fields and values

API Response Size

Estimate total API response size for a given number of records

Formula

Size = Sum(keyLength + overhead + valueSize) per field | Gzip ~= Raw * 0.3

Frequently Asked Questions

Why does JSON size matter?
JSON size affects API response times, bandwidth costs, and client-side parsing performance. Large payloads slow mobile apps, increase data transfer costs, and can exceed API gateway limits (e.g., AWS API Gateway has a 10 MB limit).
How much does gzip reduce JSON size?
Gzip typically compresses JSON to 20-40% of its original size because JSON has lots of repetitive structure (keys, braces, quotes). Highly repetitive data can compress to as little as 10% of original size.

You may also need