Data Storage Converter
Convert between bytes, kilobytes, megabytes, gigabytes, terabytes, and petabytes.
About this calculator
Every rung of this ladder is a factor of 1024, not 1000. Your entry is reduced to a raw byte count using powers of two, then expanded back into six columns, so one gigabyte here means 1,073,741,824 bytes and one kilobyte means 1024. That is the binary convention that operating systems have always used, presented under the decimal SI names, and the mismatch is exactly why a drive advertised as one terabyte shows up as roughly 0.9095 on this page and as 931 gigabytes in a file manager: the manufacturer counted 10^12 bytes and the software divided by 1024 four times. The IEC's standard for information quantities, IEC 80000-13, formally coined kibibyte, mebibyte and gibibyte (KiB, MiB, GiB) as the unambiguous binary terms to end that argument, reserving kilobyte, megabyte and gigabyte for the decimal, powers-of-1000 reading — and this converter takes the older side of it, labelling binary results with the decimal names.
Two details catch people out. Petabytes can be selected as an input unit but no petabyte column is printed, so very large entries come back in terabytes. And the Bits row multiplies bytes by eight, which matters because network and broadband speeds are quoted in bits per second while file sizes are quoted in bytes — the familiar factor-of-eight discrepancy between an advertised connection and an observed download rate. Nothing here models time, so it will not tell you how long a transfer takes, nor does it account for compression, filesystem overhead, or the difference between raw and formatted capacity.
Convert
Results
Figures current as of 2026. Source: IEC 80000-13:2025, Quantities and units — Part 13: Information science and technology (International Electrotechnical Commission)
How to Use This Calculator
- Enter the Value to convert.
- Select the From unit: Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, or Petabytes.
- Review all equivalent values — GB, MB, TB, KB, Bytes, and Bits — displayed at once.
How the result changes with Value
| Value | Gigabytes | Megabytes |
|---|---|---|
| 0.5 | 0.5 GB | 512 MB |
| 0.75 | 0.75 GB | 768 MB |
| 1.5 | 1.5 GB | 1,536 MB |
| 2.5 | 2.5 GB | 2,560 MB |
What each input means
- Value
- The input value.
How this is calculated
Worked example, using the default values
- Identify Input ParametersValue = 1, From = 3 = 2 input(s) provided
- Calculate GigabytesGigabytes = round((bytes / 1024 ^ 3) * 10000) / 100001 = 1
- Calculate MegabytesMegabytes = round((bytes / 1024 ^ 2) * 10000) / 100001024 = 1024
- Calculate TerabytesTerabytes = round((bytes / 1024 ^ 4) * 10000) / 100000.001 = 0.001
- Calculate KilobytesKilobytes = round((bytes / 1024) * 10000) / 100001048576 = 1048576
Figures and sources
- Binary prefixes (kibi-, mebi-, gibi-) vs. decimal SI prefixes for information quantities (2026) — IEC 80000-13:2025, Quantities and units — Part 13: Information science and technology (International Electrotechnical Commission)
Engine last updated . Checked against 2 independently-derived tests — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.
Frequently Asked Questions
Does this use 1000 or 1024 per step?
1024 at every level, all the way from bytes to petabytes. If you need the decimal interpretation that drive manufacturers use, where a megabyte is a flat million bytes, this page will not give it to you. The two conventions diverge by about 2.4 percent at each rung, which compounds to nearly 10 percent by the time you reach terabytes. The IEC 80000-13 standard formalizes this split by giving the binary count its own name — a gibibyte (GiB) rather than a gigabyte (GB) — but this converter, like most operating systems, keeps the familiar decimal names attached to the binary math.
Why does my new 1 TB drive show less than a terabyte?
Nothing is missing. The manufacturer sold you 10^12 bytes and this converter divides by 1024 four times, which restates that same capacity as roughly 0.9095 terabytes or 931 gigabytes. Both numbers describe an identical physical disk.
What is the Bits row for?
It is simply the byte count multiplied by eight, and it exists because bandwidth is advertised in bits per second while files are measured in bytes. That single factor of eight explains most complaints that a broadband line downloads slower than promised.
I picked Petabytes but see no petabyte result.
Petabytes is available as an input unit only; the results table stops at terabytes. A one petabyte entry therefore comes back as 1024 in the Terabytes row, which is the same quantity written one rung further down the ladder.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Download Time Calculator
Calculate how long it takes to download a file at various internet speeds. Compare download times across different connection speeds.
Technology & ComputingBinary/Hex/Decimal Converter
Convert a decimal number into its binary, octal, and hexadecimal representations. Includes bit count, byte size, and ASCII character lookup.
Technology & ComputingFile Size Converter
Convert file sizes between bytes, KB, MB, GB, and TB. Understand file size in different units.
Technology & ComputingDeveloper Tools Calculator
Download times, file sizes, screen PPI, and data encoding calculations.
Unit ConversionsTemperature Converter
Convert between Fahrenheit, Celsius, and Kelvin temperature scales instantly.
More in Unit Conversions.