Skip to content
ToolShelf

File size converter

Convert between bytes, kilobytes, megabytes, gigabytes and up, in both the 1,000-based and 1,024-based systems, with each reading shown against the other.

The size you have

Units ending in iB are the 1,024-based ones: KiB, MiB, GiB. Both systems are offered at every step because both are in daily use and neither is wrong.

Converted

—

Enter a size and pick the two units.

Why there are two answers

Everywhere else in measurement, kilo means a thousand. A kilometre is 1,000 metres and nobody argues about it. Computing borrowed the prefix and then used it for 1,024, because 1,024 is 210 and it is the number that falls out of how memory is addressed, close enough to a thousand that the name seemed harmless.

It was harmless while files were small. At kilobytes the two readings are 2.4% apart. By gigabytes they are 7.4% apart, and by terabytes 10%, which is large enough to look like somebody is lying.

In 1998 the IEC named the binary ones separately, kibibyte, mebibyte, gibibyte, written KiB, MiB, GiB, so that kB could go back to meaning a thousand. The names are correct, unambiguous, and still not what most software prints.

Who uses which

  • Storage manufacturers use decimal. A “500 GB” drive holds 500,000,000,000 bytes.
  • Windows uses binary values with decimal labels, so the same drive reads as 465 GB.
  • macOS switched to decimal in 2009, so it agrees with the box.
  • RAM is always binary, from everyone. 16 GB of memory really is 16 GiB.
  • Network speeds are decimal, and in bits rather than bytes.

The 500 GB drive, worked through

The drive holds 500,000,000,000 bytes. Divide by 1,024 three times, for kibi, mebi and gibi, and you get 465.66. Windows prints that number with a “GB” label.

So nothing is missing and nobody has overstated anything. The same bytes are being counted in one system and labelled in the other. A little more disappears to the file system when the drive is formatted, which is real, but it is a fraction of a percent rather than the seven you can see.

MB and Mb are not the same thing

The case of the second letter is a factor of eight. A capital B is bytes; a lowercase b is bits, and there are eight bits in a byte.

Internet connections are sold in megabits per second. A 100 Mbps line moves at most about 12.5 MB a second, so a 1 GB download takes at least 80 seconds and not 10. That single letter is the most common reason a connection feels eight times slower than advertised.

Rough sizes worth carrying around

A phone photo is 2–5 MB. A compressed song is 3–10 MB. An hour of ordinary video is around 1 GB; an hour of 4K is 15 GB or more. A plain text novel is under 1 MB, text is very nearly free, and it is images and video that fill a disk.

These vary hugely with quality settings, so they are worth using to sanity-check a figure rather than to plan storage with.

Questions

Is a kilobyte 1,000 bytes or 1,024?
Both, depending on who is counting. The SI prefix kilo means 1,000 everywhere else in measurement, and that is what storage manufacturers, macOS and network speeds use. Computing has also long used 1,024, because it is 2 to the power of 10 and falls out of how memory is addressed. The IEC settled the naming in 1998, 1,000 is a kilobyte (kB) and 1,024 is a kibibyte (KiB), but the older usage never went away.
Why does my 500 GB drive show as 465 GB?
Because it is being measured one way and labelled the other. The drive holds 500,000,000,000 bytes, which is genuinely 500 GB. Windows divides by 1,024 three times, getting 465.66, and then prints the label 'GB' next to it. Nothing has been lost and nobody has overstated anything. The same bytes are being reported in gibibytes under a gigabyte label.
What is the difference between KB and KiB?
KB is 1,000 bytes and KiB is 1,024 bytes. The same pattern runs up the scale: MB and MiB, GB and GiB, TB and TiB. The 'bi' in the middle stands for binary. The gap compounds, 2.4% at kilobytes, 4.9% at megabytes, 7.4% at gigabytes and 10% at terabytes, which is why the two readings look identical on a small file and noticeably different on a hard drive.
Which one does my operating system use?
Windows uses 1,024-based values labelled KB, MB and GB. macOS switched to 1,000-based values in 2009, so the same file can read as 4.19 MB on a Mac and 4.00 MB on a PC. Linux depends on the tool: many command-line utilities offer both, and some distributions' file managers use one while their disk utilities use the other. Android and iOS both use 1,000-based values.
What is the difference between MB and Mb?
The case matters and the difference is a factor of eight. A big B is bytes; a small b is bits, and there are eight bits in a byte. Internet speeds are quoted in megabits per second, so a 100 Mbps connection downloads at about 12.5 MB per second at best. It is the single most common reason a download seems eight times slower than the advertised speed.
How large is a photo, a song or a film?
Rough working figures: a photo from a modern phone is 2 to 5 MB, a compressed song is 3 to 10 MB, an hour of standard-definition video is around 1 GB and an hour of 4K is 15 GB or more. They vary enormously with quality settings, so use them to sanity-check a number rather than to plan storage.
How many bytes are in a terabyte?
One trillion, 1,000,000,000,000, if you are counting in the decimal system, or 1,099,511,627,776 if you are counting in tebibytes. The 10% gap between them is why a 1 TB drive shows about 931 GB of usable space in Windows once the labelling difference and a little formatting overhead are accounted for.
Does this send my file anywhere?
There is no file involved at all. This tool converts a number you type; it does not read anything from your device and has no connection to anything. The other tools in this category do handle real files, and those also work entirely inside your browser.

More tools