File Size Converter: Bits, Bytes, KB vs KiB, MB vs MiB, and GB vs GiB

Convert bits, bytes, and decimal (kB, MB, GB, TB) or binary (KiB, MiB, GiB, TiB) file sizes, and see exactly why a 1 TB drive shows up as 931 GiB.
File Size Converter v1.0.2Last Update: Nov 21, 2026
Enter a size and pick its unit to see it in bits, bytes, decimal units (kB, MB, GB, where each step is 1,000) and binary units (KiB, MiB, GiB, where each step is 1,024).
Bits (SI, powers of 1,000)
Bytes
| Unit | Value |
|---|---|
| Bytes (B) | — Copy |
Decimal bytes (SI, powers of 1,000)
| Unit | Value |
|---|---|
| Kilobytes (kB) | — Copy |
| Megabytes (MB) | — Copy |
| Gigabytes (GB) | — Copy |
| Terabytes (TB) | — Copy |
| Petabytes (PB) | — Copy |
Binary bytes (IEC, powers of 1,024)
| Unit | Value |
|---|---|
| Kibibytes (KiB) | — Copy |
| Mebibytes (MiB) | — Copy |
| Gibibytes (GiB) | — Copy |
| Tebibytes (TiB) | — Copy |
| Pebibytes (PiB) | — Copy |
Decimal vs binary: how far apart they drift
| Prefix | Decimal (SI) | Binary (IEC) | Binary is larger by |
|---|---|---|---|
| Kilo | kB = 1,000 bytes | KiB = 1,024 bytes | 2.40% |
| Mega | MB = 1,000,000 bytes | MiB = 1,048,576 bytes | 4.86% |
| Giga | GB = 1,000,000,000 bytes | GiB = 1,073,741,824 bytes | 7.37% |
| Tera | TB = 1,000,000,000,000 bytes | TiB = 1,099,511,627,776 bytes | 9.95% |
| Peta | PB = 1,000,000,000,000,000 bytes | PiB = 1,125,899,906,842,624 bytes | 12.59% |
That gap is why a 1 TB drive (1,000,000,000,000 bytes) shows up as about 931 GiB in an operating system that counts in binary.
1 byte = 8 bits. Bit units are decimal (1 Mbit = 1,000,000 bits), the way network speeds are quoted. Lowercase b is bits and uppercase B is bytes.
The converter opens with 1 GB entered, and every unit is converted through bytes, where 1 byte equals 8 bits. A summary line states the value in bytes, then four striped tables list the same quantity in bits, bytes, decimal SI units, and binary IEC units, each with a Copy button on every row. A collapsible table, Decimal vs binary: how far apart they drift, shows the growing gap from 2.40 percent at kilo to 12.59 percent at peta. Try 1 TB and you will see 931.322575 GiB. Try 1 MiB and you will see 1.048576 MB.
Bits and Bytes
A bit is a single 0 or 1. A byte is 8 bits, enough to store a single character in many older text encodings and the base unit for almost every file size you will see in marketing, email, and storage.
File sizes are almost always quoted in bytes. Network speeds are almost always quoted in bits. That one difference causes more confusion than any prefix on this page. If you remember only the ratio, remember this: divide bits by 8 to get bytes, and multiply bytes by 8 to get bits.
Bit units use the same decimal prefixes as the rest of the metric system. 1 kbit is 1,000 bits, 1 Mbit is 1,000,000 bits, and 1 Gbit is 1,000,000,000 bits. In bytes, those same quantities are 125 bytes, 125,000 bytes, and 125,000,000 bytes. The converter includes those bit units so you can move between a bandwidth claim and a file size without doing the math by hand.
Decimal SI Units
In the International System of Units, each prefix multiplies the unit by 1,000. 1 kB is 1,000 bytes, 1 MB is 1,000,000 bytes, and 1 GB is 1,000,000,000 bytes.
The Bureau International des Poids et Mesures (BIPM) maintains the SI Units. The official symbol for kilo is a lowercase k, which is why the internationally recommended symbol for a kilobyte is kB, not KB. Software still prints KB all the time. The converter uses kB, which is the form the standard asks for.
From there the decimal ladder is regular:
- 1 kB (kilobyte) = 1,000 bytes = 10^3 bytes
- 1 MB (megabyte) = 1,000 kB = 10^6 bytes
- 1 GB (gigabyte) = 1,000 MB = 10^9 bytes
- 1 TB (terabyte) = 1,000 GB = 10^12 bytes
- 1 PB (petabyte) = 1,000 TB = 10^15 bytes
- 1 EB (exabyte) = 1,000 PB = 10^18 bytes
- 1 ZB (zettabyte) = 1,000 EB = 10^21 bytes
- 1 YB (yottabyte) = 1,000 ZB = 10^24 bytes
The converter goes through PB. It does not convert EB, ZB, or YB, but those units follow the same 1,000-per-step rule and show up in industry-scale storage and traffic figures. In 2022 the General Conference on Weights and Measures added two more decimal prefixes, ronna (R, 10^27) and quetta (Q, 10^30), which would form ronnabytes and quettabytes if you ever need to name a quantity that large. The BIPM announcement of that decision is the public record of the change.
SI prefixes refer strictly to powers of 10 and should not be used for powers of 2. A kilobit is 1,000 bits, not 1,024 bits, which is a kibibit.
Joint Committee for Guides in Metrology, International Vocabulary of Metrology (VIM), 3rd edition, entry 1.17
The International System of Units provides decimal prefixes from kilo (k, 10^3) through quetta (Q, 10^30). A prefix symbol is attached to a unit symbol with no space, and that pairing is treated as a single new unit symbol.
Bureau International des Poids et Mesures, The International System of Units (SI), 9th edition (2019, updated 2026)
Binary IEC Units
Binary prefixes step by 1,024, because that is 2^10. 1 KiB is 1,024 bytes, 1 MiB is 1,048,576 bytes, and 1 GiB is 1,073,741,824 bytes.
Computers address memory in powers of two, so a binary count is the natural way to describe RAM and many file-system reports. The International Electrotechnical Commission (IEC) gave those powers their own prefixes so they would not be confused with the decimal ones. The names are easy to remember: take the first two letters of the decimal prefix and add bi, for binary. Kilo becomes kibi, mega becomes mebi, and the symbol gains a lowercase i, so Ki, Mi, Gi, and so on.
- 1 KiB (kibibyte) = 1,024 bytes = 2^10 bytes
- 1 MiB (mebibyte) = 1,024 KiB = 2^20 bytes
- 1 GiB (gibibyte) = 1,024 MiB = 2^30 bytes
- 1 TiB (tebibyte) = 1,024 GiB = 2^40 bytes
- 1 PiB (pebibyte) = 1,024 TiB = 2^50 bytes
- 1 EiB (exbibyte) = 1,024 PiB = 2^60 bytes
- 1 ZiB (zebibyte) = 1,024 EiB = 2^70 bytes
- 1 YiB (yobibyte) = 1,024 ZiB = 2^80 bytes
The converter goes through PiB. It does not convert EiB, ZiB, or YiB, but those larger binary units are defined in the same standard. The 2025 edition also adds robi and quebi to sit beside ronna and quetta.
IEC 80000-13 specifies names, symbols, and definitions for quantities and units used in information science and technology, and it includes prefixes for binary multiples. The second edition, published in 2025, adds the newer binary prefixes that correspond to the latest decimal SI prefixes.
International Electrotechnical Commission, IEC 80000-13:2025, Quantities and units, Part 13: Information science and technology
The National Institute of Standards and Technology (NIST) publishes a clear side-by-side comparison of the decimal and binary prefixes, including the reminder that 1 byte is 8 bits, 1 MiB is 1,048,576 bytes, and 1 MB is 1,000,000 bytes.
Why a 1 TB Drive Shows Up as 931 GiB
The gap starts small and gets wider at every step. A KiB is only 2.4 percent larger than a kB. A MiB is about 4.86 percent larger than an MB. A GiB is about 7.37 percent larger than a GB. A TiB is about 9.95 percent larger than a TB. By the time you reach peta, the binary unit is about 12.59 percent larger than its decimal counterpart.
That is the entire “missing” space on a new drive. A manufacturer that advertises 1 TB is selling 1,000,000,000,000 bytes, which is the decimal meaning of the prefix. An operating system that divides those bytes by 1,024 three times is reporting GiB, even when the window still says GB. 1,000,000,000,000 divided by 1,073,741,824 is 931.322575. The capacity did not shrink. The label changed systems.
In practice, you will see three common habits:
- Drive makers and most cloud storage plans use decimal units for hard drives, solid-state drives, and advertised capacity.
- Windows, Linux directory listings, and many utilities count in binary, then print KB, MB, or GB anyway.
- RAM is almost always a binary quantity. An “8 GB” memory kit is typically 8 GiB, which is 8,589,934,592 bytes, not 8,000,000,000.
macOS has reported disk sizes in decimal units for many years, which is why the same drive can look closer to its advertised size on a Mac and smaller in Windows. When two screens disagree, convert both values to bytes. If the byte counts match, the tools are telling the same story in different unit systems.
Mbps Versus MB/s
Mbps is megabits per second. MB/s is megabytes per second. A 100 Mbps link can move 12.5 MB each second in theory, because 100,000,000 bits divided by 8 is 12,500,000 bytes.
The same rule holds one step up and one step down. 1 Gbps is 125 MB/s in theory. 1,000 Kbps is 125 kB/s in theory. Real transfers run lower than that ceiling once packet headers, encryption, and retries take their share, so treat the divided-by-8 figure as the best case, not a guarantee.
This matters as soon as you promise a download. A 50 MB media kit on a 20 Mbps mobile connection is 400 megabits of payload. At the full 20 Mbps that is 20 seconds before any overhead. The same file on a 200 Mbps office link is a couple of seconds. If your landing page, product video, or email capture has to work on a phone, budget for the bit rate, not the byte label on the file.
What These Sizes Mean in Marketing
Unit names get easier once you attach them to the files you actually ship.
Images
A logo or icon should sit in the low tens of kilobytes. A blog or product photo, exported as JPEG or WebP at a sensible width, is often in the low hundreds of kilobytes. A full-width hero saved as an uncompressed PNG can jump into the megabytes and outweigh everything else on the page. If a single image is larger than the HTML, styles, and scripts around it, compress it or serve a smaller width before you touch anything else.
Page Weight
Page weight is the total of every byte the browser must download to render the view: markup, styles, scripts, fonts, images, and embeds. On a mobile network those kilobytes turn into seconds, and seconds turn into abandoned visits. A heavy hero, an autoplaying video, or an unsized third-party embed can do more damage than an extra paragraph of copy. When you compare templates or landing-page tools, look at the finished page weight, not only the design.
Email Attachments
Mailbox providers cap attachments in the tens of megabytes. A slide deck or a short screen recording can clear that cap even when it feels small on your laptop. When a file is close to the limit, put it behind a link instead of attaching it. The email stays lean, the download can be measured, and you are not asking a mobile client to pull a large payload before the message can even open.
Video
Video overtakes every other asset class as soon as it leaves a social-crop preview. A few seconds of high-resolution footage can be larger than a long PDF sales deck or an entire article with images. Host the file with a player that streams, offer a poster frame, and avoid attaching the source file to email or loading it automatically on first paint. If you need a number for planning, convert the file size to bits and divide by the bit rate you expect your audience to have.
File Size Units at a Glance
Use this table as a reference when a label could mean either system. The converter handles 15 units, all converted through bytes: bits through Gbit, the byte itself, decimal units through PB, and binary units through PiB. The larger decimal and binary units below are shown for scale. The tool does not convert them.
| Unit | Name | System | Exact size | Compared with the other system |
|---|---|---|---|---|
| bit | bit | Quantity | 1 bit | 8 bits = 1 byte |
| kbit | kilobit | Decimal bits | 1,000 bits (125 bytes) | Used in Kbps rates |
| Mbit | megabit | Decimal bits | 1,000,000 bits (125,000 bytes) | 1 Mbit/s = 0.125 MB/s |
| Gbit | gigabit | Decimal bits | 1,000,000,000 bits (125,000,000 bytes) | 1 Gbit/s = 125 MB/s |
| B | byte | Quantity | 8 bits | Base unit for file sizes |
| kB | kilobyte | Decimal (SI) | 1,000 bytes | KiB is 2.40% larger |
| KiB | kibibyte | Binary (IEC) | 1,024 bytes | 2^10 bytes |
| MB | megabyte | Decimal (SI) | 1,000,000 bytes | MiB is 4.86% larger |
| MiB | mebibyte | Binary (IEC) | 1,048,576 bytes | 2^20 bytes |
| GB | gigabyte | Decimal (SI) | 1,000,000,000 bytes | GiB is 7.37% larger |
| GiB | gibibyte | Binary (IEC) | 1,073,741,824 bytes | 2^30 bytes |
| TB | terabyte | Decimal (SI) | 1,000,000,000,000 bytes | A 1 TB drive is 931.322575 GiB |
| TiB | tebibyte | Binary (IEC) | 1,099,511,627,776 bytes | 2^40 bytes, about 9.95% larger than 1 TB |
| PB | petabyte | Decimal (SI) | 1,000,000,000,000,000 bytes | PiB is 12.59% larger |
| PiB | pebibyte | Binary (IEC) | 1,125,899,906,842,624 bytes | 2^50 bytes |
| EB | exabyte | Decimal (SI) | 1,000,000,000,000,000,000 bytes | Beyond the converter; EiB is 15.29% larger |
| EiB | exbibyte | Binary (IEC) | 1,152,921,504,606,846,976 bytes | 2^60 bytes |
| ZB | zettabyte | Decimal (SI) | 1,000,000,000,000,000,000,000 bytes | Beyond the converter; ZiB is 18.06% larger |
| ZiB | zebibyte | Binary (IEC) | 1,180,591,620,717,411,303,424 bytes | 2^70 bytes |
| YB | yottabyte | Decimal (SI) | 1,000,000,000,000,000,000,000,000 bytes | Beyond the converter; YiB is 20.89% larger |
| YiB | yobibyte | Binary (IEC) | 1,208,925,819,614,629,174,706,176 bytes | 2^80 bytes |
When a vendor, an operating system, and a spreadsheet use different labels for the same file, convert everything to bytes first. Once the byte counts agree, the prefixes are just two ways of grouping the same number.
Frequently Asked Questions
What Is the Difference Between MB and MiB?
MB is a decimal megabyte: 1,000,000 bytes. MiB is a binary mebibyte: 1,048,576 bytes, which is 1,024 times 1,024. A MiB is about 4.86 percent larger than an MB. If a tool says a file is 1 MB, ask whether it used 1,000,000 or 1,048,576 bytes.
Why Does a 1 TB Drive Show Up as 931 GiB?
The maker is using decimal terabytes, so 1 TB is 1,000,000,000,000 bytes. An operating system that counts in binary divides that total by 1,073,741,824, which is 1 GiB, and gets 931.322575. The capacity is the same. The two labels are using different multipliers.
Is a Kilobyte 1,000 Bytes or 1,024 Bytes?
In the International System of Units, 1 kB is 1,000 bytes. The binary counterpart is the kibibyte, 1 KiB, which is 1,024 bytes. Older software often printed KB for 1,024 bytes. When the exact count matters, write kB or KiB, or convert the value to bytes.
What Is the Difference Between Mbps and MB/s?
Mbps is megabits per second. MB/s is megabytes per second. Divide a bit rate by 8 to get the byte rate, so 100 Mbps is 12.5 MB/s in theory. Protocol overhead means a real transfer is usually slower than that ceiling.
Why Do Operating Systems and Drive Labels Disagree?
Drive makers advertise decimal sizes. Many operating system tools report binary sizes and still label them as KB, MB, or GB. Memory is usually a binary count even when a kit is sold as 8 GB or 16 GB. Convert both readings to bytes to see whether they describe the same capacity.
Which Units Does This Converter Support?
It converts bits, kilobits, megabits, gigabits, bytes, the decimal units kB, MB, GB, TB, and PB, and the binary units KiB, MiB, GiB, TiB, and PiB. Larger standardized units such as EB and EiB through YB and YiB follow the same rules but are not in the converter.
Does the Converter Upload My Files?
No. You enter a number and a unit. The conversion runs in your browser, and no file is uploaded or stored.
Should Marketers Use Decimal or Binary Units?
Match the system used by the thing you are describing. Use decimal units for advertised storage and most file-size limits. Use binary units, or be explicit, when you are talking about memory or an operating system report. Use bits, such as Mbps or Gbps, when you are talking about bandwidth. When there is any chance of confusion, show the value in bytes as well.






