Data Sizes

Primitives, objects, and real-world payloads

Not Started
Loading...

Data size estimation is fundamental to capacity planning. Understanding how much space different data types consume helps you calculate storage needs, memory requirements, and network bandwidth. These sizes add up quickly at scale: a million users with 1KB profiles means 1GB of user data alone.

Remember: 1024 bytes = 1 KB, 1024 KB = 1 MB, 1024 MB = 1 GB
Boolean
Smallest data unit
1 bit
ASCII Character
Single byte character
1 byte
Integer (32‑bit)
Common numeric type
4 bytes
Long/Double (64‑bit)
Higher precision/large range
8 bytes
UUID
Opaque identifiers
16 bytes
IPv4
32‑bit address
4 bytes
IPv6
128‑bit address
16 bytes
Tweet (280 chars)
Rough payload size
~280 bytes
Redis Key‑Value
Hot metadata
~100 bytes average
MySQL Row
Transactional records
~1 KB average
Average Web Page
HTTP Archive baseline
~2 MB
MP3 Song
Standard music streaming
~4 MB
HD Photo
High quality images
~5 MB
4K Video (1 min)
Dominates storage and egress
~375 MB
Sources: HTTP Archive

πŸ“ Test Your Knowledge

5 questions β€’ Progress: 0/5