Estimate JSON document size from record count and field structure.
JSON repeats every key name in every record, so key length multiplies across the dataset. On wide records with short values the keys can exceed the data itself. This repetition is why columnar and binary formats are far smaller for large datasets, and why shortening key names measurably reduces API payloads.
JSON Size
Size = records × fields × (key + quotes + value + separators + indentation)
Size = records × fields × (key + quotes + value + separators + indentation) JSON repeats every key name in every record, so key length multiplies across the dataset. On wide records with short values the keys can exceed the data itself.
This repetition is why columnar and binary formats are far smaller for large datasets, and why shortening key names measurably reduces API payloads.
This calculator takes 5 inputs: Number of records, Fields per record, Average key length, Average value length, Pretty printed. The pre-filled defaults are a realistic starting point — replace them with figures from your own environment for a result you can act on.