handy conversion guide

2021-12-22

 | 

~2 min read

 | 

386 words

Storage Size

byte kb mb gb tb pb
byte 1 1,000 1,000,000 1,000,000,000 1,000,000,000,000 1,000,000,000,000,000
kb - 1 1,000 1,000,000 1,000,000,000 1,000,000,000,000
mb - - 1 1,000 1,000,000 1,000,000,000
gb - - - 1 1,000 1,000,000
tb - - - - 1 1,000
pb - - - - - 1

Another way to think about byte conversion is this selected powers of two table.

Power Exact Value Approx Value Bytes
7 128
8 256
10 1024 1 thousand 1 KB
16 65,536 64 KB
20 1,048,576 1 million 1 MB
30 1,073,741,824 1 billion 1 GB
32 4,294,967,296 4 GB
40 1,099,511,627,776 1 trillion 1 TB

Time

millisecond second minute hour day month year
millisecond 1 1000 600,000 3,600,000 ~85,000,000 ~25,000,000,000 ~9,500,000,000,000
second - 1 60 3600 ~85,000 ~2,500,000 ~30,000,000
minute - - 1 60 1,440 ~85,000 ~2,500,000
hour - - - 1 24 ~700 ~8750
day - - - - 1 ~30 ~365
month - - - - - 1 12
year - - - - - - 1

Related Posts
  • System Design: A Framework For Approaching The Problem


  • Hi there and thanks for reading! My name's Stephen. I live in Chicago with my wife, Kate, and dog, Finn. Want more? See about and get in touch!