← All tools/Converters/Data/Data Storage Converter
Data Storage Converter
Convert storage sizes between bytes and petabytes, on the base you choose.
Converted value
Same amount in every unit (log scale, so small units stay visible)
How it works
bytes = value × from-unit size result = bytes ÷ to-unit size 1024 base: 1 KB = 1024 B, 1 MB = 1024 KB 1000 base: 1 KB = 1000 B, 1 MB = 1000 KB
Worked example: 1024 MB equals 1 GB on the 1024 base.
Frequently asked questions
Is a kilobyte 1000 or 1024 bytes?
Both are used. Storage makers often use 1000, while computers traditionally use 1024. This converter lets you pick either base.
How many megabytes are in a gigabyte?
1024 megabytes with the 1024 base, or 1000 megabytes with the 1000 base.
Why does my hard drive show less space than advertised?
A drive sold as 1 TB holds 1,000,000,000,000 bytes, which your computer reports as about 931 GB using the 1024 base.
What is the largest unit here?
A petabyte, which is 1024 terabytes on the 1024 base.
More tools
Tell us what you think
Loving this tool, or stuck on something? Tell us — it takes a minute.
We’ll only use your name and email to reply if needed. The tool and page are filled in for you.