CalcSeed

Byte Conversion Calculator

Enter a value in bytes, kilobytes, megabytes or gigabytes and see the other three, using 1024-based binary units.

=
Quick answer: with the default inputs (1,073,741,824 B, 1,048,576 KB, 1 GB), the megabytes is 1,024 MB. Change any input to update the result.
Megabytes
—

What the converter returns

Enter a value in any one of the four fields and the other three update. The defaults describe one gibibyte: 1 GB is 1,024 MB, 1,048,576 KB and 1,073,741,824 bytes. Every field is the same quantity expressed in a different unit.

Each step is a factor of 1024, not 1000. That single choice explains most of the confusion between what a drive is sold as and what an operating system reports, and it is the one thing to hold on to when reading the numbers.

The scale: powers of two

1KB=210B,1MB=220B,1GB=230B1\text{KB}=2^{10}\text{B},\ 1\text{MB}=2^{20}\text{B},\ 1\text{GB}=2^{30}\text{B}

A kilobyte is 210 bytes, a megabyte is 220 and a gigabyte is 230. The exponent climbs by ten for each unit because 210 = 1024, which is the step size. Memory is addressed in powers of two, so these are the natural units for RAM, cache and file sizes as the operating system sees them.

The decimal system uses 103, 106 and 109 instead, so the two scales diverge by about 2.4 percent at the kilobyte, 4.9 percent at the megabyte, 7.4 percent at the gigabyte and 10 percent at the terabyte. The divergence grows because it compounds: 1.024 multiplied by itself is not 1.048.

Worked example: one gigabyte

Start from 1 GB and multiply down the chain. One gigabyte is 1024 megabytes, so the MB field reads 1,024. Multiply again for kilobytes: 1024 × 1024 = 1,048,576. Once more for bytes: 1,048,576 × 1024 = 1,073,741,824.

  • 1 GB = 1,024 MB
  • 1,024 MB = 1,048,576 KB
  • 1,048,576 KB = 1,073,741,824 B
  • Dividing back by 1024 three times returns exactly 1

The reverse direction is a plain division. 1,073,741,824 ÷ 1024 = 1,048,576, then ÷ 1024 = 1,024, then ÷ 1024 = 1. Because every step is exact, the round trip loses nothing, and that is a good way to check any value you enter.

Reference table

UnitBytesRelative to the previous
1 byte18 bits
1 KB1,024×1,024
1 MB1,048,576×1,024
1 GB1,073,741,824×1,024
1 TB1,099,511,627,776×1,024
1 PB1,125,899,906,842,624×1,024

The byte count grows by roughly three decimal digits per step but not exactly, which is why the two systems drift apart. A terabyte is 1.0995 × 1012 bytes in binary units and 1.0 × 1012 in decimal units, a gap of nearly 10 percent.

Why a 1 TB drive shows as 931 GB

Drive manufacturers quote decimal capacity, so a 1 TB drive holds 1,000,000,000,000 bytes. Windows divides by 1024 at each step, and 1,000,000,000,000 ÷ 230 = 931.32. The drive is not short; the two sides are counting in different units and neither is lying.

The same arithmetic explains a 500 GB drive reading as about 465 GB, and a 256 GB phone showing roughly 238 GB before the operating system takes its share. The bigger the drive, the larger the visible discrepancy, because the 10 percent gap at the terabyte scale dwarfs the 2.4 percent at the kilobyte scale.

KiB, MiB and GiB

The IEC proposed unambiguous prefixes in 1998: kibibyte for 1024 bytes, mebibyte for 1024 kibibytes, gibibyte for 1024 mebibytes. Most software ignored the names, but the distinction is what the numbers are about. When a spec says GiB it means 230; when a sales page says GB it usually means 109.

Sizes of familiar things

A page of plain text is about 2 KB, roughly 3,000 characters at one byte each. A twelve-megapixel photo at high quality lands near 4 MB, which is 4,194,304 bytes in these units. A four-minute song at 128 kbps is 128,000 bits per second × 240 seconds = 30,720,000 bits, or 3.75 MB.

Bit rates versus file sizes

Those figures only line up when the units are stated. A streaming service quoting 128 kbps is talking about bits per second, while a file manager showing 3.75 MB is talking about bytes. Dividing the bit rate by 8 gives 16 KB per second, and 16 × 240 = 3,840 KB, which is the same 3.75 MB.

Where byte conversion bites

  • Mixing bits and bytes: a 100 Mbps link moves 12.5 MB per second, not 100
  • Assuming 1000 bytes in a kilobyte, which understates every file size by 2.4 percent per step
  • Treating GB and GiB as synonyms, a 10 percent error at terabyte scale
  • Forgetting that the reported capacity excludes the file system and the operating system image
  • Rounding intermediate results, so a chain of conversions no longer lands back on the starting value

The last one is subtle and worth avoiding in code. Keep the byte count as the canonical value and derive the other three from it, exactly as this calculator does, rather than converting GB to MB and then MB to KB. Each rounding step adds error, and three steps add three times as much.

Range and display

The byte field accepts up to 1015, about 909 terabytes, and the gigabyte field allows fractional values such as 0.25. Outputs are shown to four decimal places, so a value that does not divide evenly still displays useful precision rather than snapping to a whole number.

If you enter a value in one field, the others are derived from it in the order bytes, kilobytes, megabytes, gigabytes. That ordering matters when two fields hold values that disagree: the bytes field wins, and the rest are recalculated. Clear the field you do not want to constrain if the result looks unexpected.

Frequently asked questions

How many bytes are in a kilobyte?

1,024 in binary units, which is what this calculator uses. Decimal marketing sometimes uses 1,000, and the IEC name for the binary unit is kibibyte.

How many MB are in a GB?

1,024. One gigabyte is 230 bytes, and one megabyte is 220, so the ratio is 210 = 1024.

Why does my 1 TB drive show 931 GB?

The drive is sold in decimal terabytes, 1012 bytes, and the operating system divides by 230 per gigabyte. 1,000,000,000,000 ÷ 1,073,741,824 = 931.32.

What is 1 GB in bytes?

1,073,741,824 bytes. That is 1,024 × 1,024 × 1,024, or 230.

Is a KB 1000 or 1024 bytes?

Both definitions exist. In memory and file sizes it is 1,024; in storage marketing and networking it is often 1,000. The two differ by 2.4 percent.

What is the difference between Mbps and MB/s?

Mbps is megabits per second and MB/s is megabytes per second. One byte is eight bits, so divide Mbps by 8: a 100 Mbps link is 12.5 MB/s.

How many gigabytes is 1,048,576 KB?

Exactly 1 GB. 1,048,576 ÷ 1,024 = 1,024 MB, and 1,024 ÷ 1,024 = 1 GB.

How big is a 12-megapixel photo in bytes?

Roughly 4 MB at high quality, or 4,194,304 bytes. Compression and scene complexity move that figure by a factor of two or more.

What is a tebibyte?

240 bytes, or 1,099,511,627,776. The decimal terabyte is 1012 bytes, about 9 percent smaller, which is the gap you see in drive capacities.

Why do the four fields not add up exactly?

They do, as long as you do not round. The display rounds to four decimals, so a fractional byte count can look inconsistent even when the underlying value is exact.

Method and sources

Calculation basis

Conversions and formats follow the relevant IETF RFCs and IEEE standards, including RFC 4648 for Base64 and RFC 791 for IPv4 addressing.

Last updated: November 17, 2026
Formula & data sources
  • Binary byte units: 1 KB = 2¹⁰ B, 1 MB = 2²⁰ B, 1 GB = 2³⁰ B.

Cite this page

Reference formats
APA 7CalcSeed. (2026, November 17). Byte Conversion Calculator. https://calcseed.com/c/developer/byte-conversion-calculator/
MLA 9"Byte Conversion Calculator." CalcSeed, 17 Nov. 2026, calcseed.com/c/developer/byte-conversion-calculator/.
ChicagoCalcSeed. "Byte Conversion Calculator." Last modified November 17, 2026. https://calcseed.com/c/developer/byte-conversion-calculator/

Related calculators

More Developer calculators