Conversion

Data Storage Converter

Convert bytes, KB, MB, GB, and TB with binary (1024) units.

Convert data storage between bytes, kilobytes, megabytes, gigabytes, and terabytes using the binary (1024-based) units your devices actually use. Check file sizes, plan storage, and understand what your hard drive really holds.

How it's calculated

The five units on this page form a ladder: bytes, kilobytes, megabytes, gigabytes and terabytes, in that order. Each rung of the ladder is worth 1,024 of the rung below it. You enter a value, the unit it is in, and the unit you want. If your starting unit sits a certain number of steps above bytes and your target sits a different number of steps above bytes, the calculation is: result = value × 1024^(from-step) ÷ 1024^(to-step). Moving down the ladder multiplies, moving up divides, and each step of distance contributes one more factor of 1,024.

The byte counts behind the ladder are exact powers of two: 1 KB = 1,024 bytes, 1 MB = 1,048,576 bytes, 1 GB = 1,073,741,824 bytes and 1 TB = 1,099,511,627,776 bytes. The number 1,024 appears because computers work in binary, counting in powers of two, and 2 to the power of 10 is 1,024, the power of two closest to one thousand. Early computer engineers borrowed the metric-sounding names kilo, mega and giga for these nearby binary quantities, and the naming stuck even though the values are slightly larger than their decimal cousins.

Because the gap between 1,024 and 1,000 compounds at every step, the two systems drift further apart as units grow: about 2.4 percent at the kilobyte step, and nearly 10 percent by the terabyte step. This converter uses the binary system throughout, matching how operating systems count file sizes and free space, so its results line up with the figures your computer itself reports.

Worked example

Say a video file is described as 5 GB and you want to know its size in megabytes, perhaps because an upload form states its limit in MB. Gigabytes sit one rung above megabytes on the ladder, so converting down means multiplying by 1,024 exactly once: 5 × 1,024 = 5,120 MB. The same logic extends further down the ladder. One more step, to kilobytes, would multiply by 1,024 again, giving 5 × 1,024 × 1,024 = 5,242,880 KB. Notice how quickly the numbers grow: each step down multiplies the count by over a thousand, even though the file itself has not changed at all, only the unit used to describe it.

When to use it

Checking whether something will fit. A game download, a backup or a photo library is described in gigabytes, while your drive or memory stick shows its free space in megabytes. One conversion tells you whether to start the download or clear space first.

Comparing storage plans and devices. Cloud plans, phone models and laptops are sold in a mix of GB and TB, and your existing files are counted in MB. Converting everything to one unit shows what each tier really buys you.

Working with limits stated in small units. An email system caps attachments in megabytes and a form or forum caps uploads in kilobytes, while your file is described in whichever unit your computer chose. Converting the file size into the limit's unit avoids a rejected upload.

Common mistakes

  • Assuming 1 GB equals 1,000 MB. Fix: in the binary system this converter uses, each step is 1,024, so 1 GB is 1,024 MB and decimal guesses always undercount.
  • Confusing bits with bytes. Fix: file sizes are measured in bytes while internet speeds are usually quoted in bits, and since one byte is eight bits, divide a bit figure by eight before comparing it with a file size.
  • Thinking a new drive is missing space because a 500 GB drive shows as about 465. Fix: makers count that drive in decimal units while your operating system counts in binary, and 500 billion bytes divided by 1,073,741,824 gives about 465.7, so the space is all there.
  • Assuming every program labels units the same way. Fix: check whether the source you are copying from counts in 1,000s or 1,024s before converting, because the same GB label can mean two slightly different sizes.

Frequently asked questions

How many megabytes are in a gigabyte?

1,024 MB. Enter 1, choose GB → MB — storage units step by 1,024.

Why 1024 and not 1000?

This uses the binary convention (1 KB = 1,024 bytes) that operating systems use. Drive makers sometimes advertise decimal units (1,000-based), which is why a “1 TB” drive shows as ~931 GB.

How much space do 1,000 photos take?

Roughly 0.93 GB — enter 1, choose MB → GB, and multiply by 1000. A thousand photos at 5 MB each is about 4.9 GB.

How many kilobytes are in one megabyte?

Exactly 1,024 kilobytes. Megabytes sit one step above kilobytes on the binary ladder, so converting one megabyte down a step multiplies it by 1,024, and converting kilobytes up to megabytes means dividing by 1,024.

How many bytes are in one terabyte?

Exactly 1,099,511,627,776 bytes. A terabyte is four binary steps above the byte, so its size is 1,024 multiplied by itself four times, which is why the exact byte count looks so much larger than a round trillion.

Is the gigabyte used here the same as a gibibyte?

In size, yes. The 1,024-based units this converter uses are the ones strictly named kibibytes, mebibytes and gibibytes, although most software still labels them KB, MB and GB. A decimal gigabyte of exactly one billion bytes is a slightly smaller quantity.

Bigger conversions, and what the numbers mean

A second worked example: one archive, three units

Take a photo archive described as 750 GB and restate it in the smaller units a backup tool might use. Gigabytes sit one rung above megabytes, so converting down multiplies by 1,024 once: 750 × 1,024 = 768,000 MB. One more rung down multiplies again: 768,000 × 1,024 = 786,432,000 KB. The archive has not changed — only the counting unit has — yet the kilobyte figure runs to nine digits, which is why backup software prefers to quote it in gigabytes. The ladder works upward just as mechanically: a 2.5 TB drive is 2.5 × 1,024 = 2,560 GB, the figure to compare against a cloud plan sold by the gigabyte.

Working a capacity question backwards

Most real questions run the other way: not "what is this in MB?" but "how much of this fits in that?" A 128 GB memory stick holds 128 × 1,024 = 131,072 MB. If your camera's RAW files average about 45 MB each, the stick holds 131,072 ÷ 45 ≈ 2,912 photos before it fills. The same backwards pattern settles whether a 200 GB cloud tier can hold a 768,000 MB archive — convert the archive up (768,000 ÷ 1,024 = 750 GB) and the answer is plainly no, with the shortfall stated in the same unit as the plan.

Edge case: when the label and the converter count differently

This converter counts in binary throughout, so feed it figures that were counted the same way. A phone sold as "256 GB" is specified by its maker in decimal: 256 billion bytes. Counted in the binary gigabytes an operating system reports, that is 256,000,000,000 ÷ 1,073,741,824 ≈ 238.4 GB — which is why the device shows less than the box promised. If you type the box figure 256 into this converter, every result it gives you is the binary interpretation of 256, slightly larger than the maker's decimal amount. Converting small amounts upward has the opposite quirk: 500 MB becomes 500 ÷ 1,024 ≈ 0.49 GB, a fraction that looks like missing data until you remember a gigabyte is simply the bigger bucket.

Related calculators