Byte Converter

Working with big numbers? Need to figure out how many bytes are in a terabyte? Megabytes in a gigabyte? Here is a tool that can do the math for you.

Insert the desired amount of Bytes, Kilobytes, Megabytes, Gigabytes or Terabytes you want to convert and then click on the corresponding arrow(s) to see the conversion.

Byte Kilobyte Megabyte Gigabyte Terabyte

Shown below is a simple conversion matrix. With this table, you can deduce the math that is required.

Maybe you could modify the script to go all the way to zettabyte? ;)

File Storage Capacity by Bits and Bytes
bit byte Kilobyte Megabyte Gigabyte
bit 1 8 8,192 8,388,608 8,589,934,592
byte 8 1 1,024 1,048,576 1,073,741,824
Kilobyte 8,192 1,024 1 1,024 1,048,576
Megabyte 8,388,608 1,048,576 1,024 1 1,024
Gigabyte 8,589,934,592 1,073,741,824 1,048,576 1,024 1
Terabyte 8,796,093,022,208 1,099,511,627,776 1,073,741,824 1,048,576 1,024
Petabyte 9,007,199,254,740,992 1,125,899,906,842,624 1,099,511,627,776 1,073,741,824 1,048,576
Exabyte 9,223,372,036,854,775,808 1,152,921,504,606,846,976 1,125,899,906,842,624 1,099,511,627,776 1,073,741,824
Zettabyte 9,444,732,965,739,290,427,392 1,180,591,620,717,411,303,424 1,152,921,504,606,846,976 1,125,899,906,842,624 1,099,511,627,776

Code Links