Convert between bits, bytes, kilobytes, megabytes, gigabytes, terabytes and more — both decimal (SI) and binary (IEC) units
Free online data storage converter. Instantly convert between bits, bytes, kilobytes (kB), kibibytes (KiB), megabytes (MB), mebibytes (MiB), gigabytes (GB), gibibytes (GiB), terabytes, tebibytes, petabytes and pebibytes. Shows the exact difference between decimal and binary units — everything runs in your browser.
How to convert data storage units?
Converting file sizes or storage capacities takes three quick steps — there is nothing to install:
Enter the numeric value you want to convert in the 'Data size' field. Decimals and scientific notation such as 1.5e3 are both accepted.
Pick the source unit in the 'From Unit' dropdown — choose a bit, byte, or any decimal (kB, MB, GB, TB, PB) or binary (KiB, MiB, GiB, TiB, PiB) multiple.
Pick the target unit in the 'To Unit' dropdown. The result updates instantly as you type or change either unit.
Use the Swap button to reverse the direction without retyping, and the copy icon next to the output to copy the result to your clipboard.
Decimal (SI) vs binary (IEC) units — which one do I need?
This is the single most common source of confusion when converting data sizes, and the two systems are deliberately offered side by side:
Decimal units (kB, MB, GB, TB) are powers of 1000. They are used by storage manufacturers, hard drive and SSD makers, and network speeds. Here 1 kB = 1000 bytes exactly.
Binary units (KiB, MiB, GiB, TiB) are powers of 1024. They are the natural units of computer memory and what most operating systems actually report. Here 1 KiB = 1024 bytes exactly.
This is why a '500 GB' SSD shows up as roughly 465 GiB in Windows: the drive is sold in decimal gigabytes, but the OS displays binary gibibytes.
To compare the two for any value, convert from a decimal unit to the matching binary unit — for example 1 MB to MiB gives 0.953674 MiB.
Reading the converted result
The output area keeps you grounded in what actually happened:
The result is shown with the correct unit symbol appended (B, kB, KiB, MB, MiB, and so on) so there is no ambiguity about the system in use.
A small formula line underneath repeats the full conversion, for example 1 MB = 0.000977 GB, making it easy to copy into a document or spreadsheet.
Very large results (petabytes and above) or very small ones (fractions of a bit) switch to scientific notation so the number stays readable.
In the early days of computing, storage was measured in powers of two because memory chips are addressed in binary. A 'kilobyte' naturally meant 1024 bytes — 2 to the power of 10, close to the decimal thousand. As storage devices grew and the general public started buying disk drives and memory cards, manufacturers adopted the decimal definition (1000 bytes) because larger numbers on the packaging sell better. The result was decades of inconsistency: a 1.44 MB floppy held 1,474,560 bytes, which is 1440 KiB but only 1.47 MB — yet everyone called it 1.44 MB. In 1998 the International Electrotechnical Commission introduced unambiguous prefixes: kilo-, mega-, giga- for powers of 1000 and kibi-, mebi-, gibi- for powers of 1024. Adoption has been slow — engineers say 'kibibyte' with a straight face, marketing departments never will — so the confusion is likely to persist. This converter sidesteps the entire argument by listing both systems explicitly.
Decimal and binary conversion factors at a glance
1 kB = 1000 B and 1 KiB = 1024 B, a difference of 2.4%.
1 MB = 1,000,000 B and 1 MiB = 1,048,576 B, a difference of 4.86%.
1 GB = 1,000,000,000 B and 1 GiB = 1,073,741,824 B, a difference of 7.37%.
1 TB = 10^12 B and 1 TiB = 1,099,511,627,776 B, a difference of 9.95%.
1 PB = 10^15 B and 1 PiB = 1,125,899,906,842,624 B, a difference of 12.6%.
Each step up the ladder widens the gap, because (1024/1000) is raised to an ever higher power.
Bits versus bytes: the factor of eight
One byte is eight bits, so converting between them simply multiplies or divides by eight. This matters constantly in networking. Internet speeds are advertised in megabits per second (Mbps) while file sizes are measured in megabytes (MB) — a '100 Mbps' connection actually transfers a maximum of 12.5 MB per second. Downloading a 1 GB file on such a line therefore takes at least 80 seconds in theory. Forgetting the factor of eight is one of the most common mistakes when estimating transfer times, and it is routinely exploited by broadband marketing. This converter includes the bit as a first-class unit so you can move between network speeds and file sizes without arithmetic slips.
Practical uses for a data storage converter
Storage planning: estimating how many photos, videos, or database rows fit into a given disk or cloud volume, accounting for the decimal-versus-binary divide.
Cloud billing: providers often bill in decimal GB while your application logs binary GiB, so a conversion step stops invoices from looking mysteriously large.
Bandwidth budgeting: converting between bits per second and bytes per second to size CDNs, rate limits, and data caps correctly.
Development and debugging: checking that a 2 GiB buffer, file limit, or memory cap maps to the right number of bytes when writing code or configuring systems.
Frequently Asked Questions (FAQs)
What is the difference between a megabyte and a mebibyte?
A megabyte (MB) is exactly 1,000,000 bytes, based on powers of ten. A mebibyte (MiB) is exactly 1,048,576 bytes, based on powers of two (1024 × 1024). The mebibyte is about 4.86% larger. Storage manufacturers use decimal megabytes, while operating systems and memory sizes typically use binary mebibytes. This converter supports both and clearly labels them so you always know which one you are working with.
Why does my 500 GB drive show as about 465 GB?
The drive is sold using decimal gigabytes (500 × 10^9 = 500,000,000,000 bytes), but Windows displays capacity in binary gibibytes (500,000,000,000 ÷ 1,073,741,824 ≈ 465.7 GiB), which it labels as 'GB'. No storage is missing — it is purely a difference in the unit definition. macOS changed to decimal units in 2009, so it now reports roughly 500 GB for the same drive.
How many bits are in a byte?
Exactly eight. A byte is eight bits, so 1 byte = 8 bits and 1 bit = 0.125 bytes. This factor of eight is essential when converting between network speeds (usually quoted in megabits per second) and file sizes or download times (usually quoted in megabytes).
Which units does this converter support?
It supports the bit, the byte, and both decimal and binary multiples up to the exabyte scale of storage: kB, KiB, MB, MiB, GB, GiB, TB, TiB, PB and PiB. Any unit converts to any other, so you can move freely between metric-prefixed and binary-prefixed values.
Are the conversion factors exact?
Yes. Decimal units use exact powers of 1000 and binary units use exact powers of 1024, so every conversion is mathematically exact. The only rounding that occurs is in the on-screen display, where the result is formatted to a sensible number of digits for readability. Very large or very small values are shown in scientific notation.
Is this tool free and does it work offline?
It is completely free and requires no sign-up. All conversion happens locally in your browser with JavaScript, so no value you enter is ever uploaded. Once the page has loaded it also works offline, which makes it handy on a machine with no internet connection.
Can I convert storage capacity to download time?
Indirectly, yes. Convert your file size to bits using a decimal megabit or gigabit unit, then divide by your connection speed in bits per second. For example a 1 GB file equals 8 gigabit (8 × 10^9 bits); at 100 Mbps that is 80 seconds. Remember that network speeds are quoted in bits, not bytes, which is why the bit is included as a unit here.