Storage Unit Converter

Utilities Client-side storage bytes kilobyte kibibyte megabyte mebibyte gigabyte gibibyte binary decimal converter units

This tool runs entirely client-side, in your browser: your data is never sent anywhere.

What it does

Converts a storage value between all the common units, while keeping decimal (SI) units and binary (IEC) units clearly separate — this is one of the most common sources of confusion in IT:

Mixing them up is why a "500 GB" hard drive shows up as roughly "465 GiB" in your file explorer — no storage is "missing", it's just two different definitions of "giga".

Try it

Reference table

UnitNameBaseValue in bytes
BByte1
kBKilobyte1000¹1,000
MBMegabyte1000²1,000,000
GBGigabyte1000³1,000,000,000
TBTerabyte1000⁴1,000,000,000,000
PBPetabyte1000⁵1,000,000,000,000,000
KiBKibibyte1024¹1,024
MiBMebibyte1024²1,048,576
GiBGibibyte1024³1,073,741,824
TiBTebibyte1024⁴1,099,511,627,776
PiBPebibyte1024⁵1,125,899,906,842,624

How it works

  1. The input value is first converted to a raw byte count, using the exact base (1000 or 1024) for the selected source unit.
  2. That byte count is then re-expressed in every other unit, decimal and binary side by side, so you can immediately compare, e.g., how many MiB correspond to 500 MB.
  3. All math uses plain JavaScript numbers; for extremely large values (beyond Number.MAX_SAFE_INTEGER, around 9 × 10¹⁵ bytes / ~8 PiB), results are still shown but may lose some precision — a warning is displayed in that case.

The classic pitfall

> "Why does my 1 TB drive only show 931 GB in Windows?"

Manufacturers advertise storage using decimal terabytes (1 TB = 1,000,000,000,000 bytes), while Windows' file explorer reports size in binary units but mislabels them with decimal names (showing "GB" when it actually means GiB). So: