Why measure JSON size?
Large JSON payloads can slow down APIs and increase bandwidth usage.
Tool workspace
Calculate JSON size instantly online. Measure JSON payload size in bytes to optimize APIs and data transfer.
Output
JSON Size Calculator helps developers determine how large a JSON payload is. Understanding payload size is important when designing APIs, optimizing network performance, or ensuring data limits are not exceeded.
Input
{"name":"John","age":30}Output
Size
Raw input : 24 B (24 bytes)
Minified : 24 B (24 bytes)
Pretty (2) : 33 B (33 bytes)
Whitespace : 0 B (0.0% of raw)
Byte breakdown (minified)
String values : 6 B (25.0%)
Object keys : 11 B (45.8%)
Other values : 2 B (8.3%)
Punctuation : 5 B
Structure
Total nodes : 3
Max depth : 1
Encoding : UTF-8
Largest fields (top 0)The tool measures the number of bytes required to represent the JSON document. This helps developers evaluate how much bandwidth an API response consumes.
Large JSON payloads can slow down APIs and increase bandwidth usage.
The tool typically measures size in bytes.
Yes. Minified JSON is smaller than formatted JSON.
Yes based on the actual character size of the JSON text.
Yes depending on browser capabilities.
No. Processing happens locally.