What is a byte? From KB to quettabyte, no confusion
The byte, the bit and the prefixes from kB to quettabyte: what each one is worth and why a 1 TB drive shows as 931 GB.
By Michel Davi 11 min read
- technology
- kastavo

A byte is a group of 8 bits, and 8 bits make 256 different values, from 0 to 255. In practice, a byte holds one unaccented letter; an accented letter or an emoji may need 2, 3 or 4 bytes. The confusion that comes up most is about the prefixes: is 1 kB 1,000 bytes or 1,024? It depends on the convention, which is why a drive sold as 1 TB shows as 931 GB in a program that counts in base 2. The space did not vanish; the unit changed.
Quick answer
- 1 byte = 8 bits.
- 1 GB = 1,000 MB (SI, decimal) and 1 GiB = 1,024 MiB (IEC, binary).
- 1 TB shows about 931 GB because of base 1,024: it is 10¹² bytes, or 931.32 GiB.
- To convert with every digit, use the Data Size Converter.
In this article
- What a byte is, in practice
- How many bytes a character takes in UTF-8
- The two conventions, up to quetta
- Why 1 TB shows as 931 GB
- The limits of our tools
- Estimates vary
- Frequently asked questions
- Appendix: the full table
What a byte is, in practice
A bit holds one of two values, 0 or 1. A byte joins 8 bits and holds 2⁸ = 256 values: from 00000000 to 11111111 in binary, or from 0 to 255 in decimal.
- Bit is the smallest unit: 0 or 1. When people talk about speed (Mbps), the lowercase "b" means bit.
- Byte is a group of bits; today, 8. The capital "B" means byte.
- Nibble is the informal name for half a byte, 4 bits.
- Octet is a group of exactly 8 bits; since the byte has had other sizes, it is the word that leaves no doubt.
Rule of thumb: bits ÷ 8 = bytes. To go from bits to bytes, divide by 8; to go the other way, multiply.
The byte did not always have 8 bits. Werner Buchholz, who coined the term at IBM, told in a letter to BYTE magazine (February 1977) that the first reference in his files is a 1956 memo from the Stretch project, in which a byte was "any number of parallel bits from one to six". The IBM System/360 fixed the size at 8 bits. The name comes from "bite", respelled so it would not turn into "bit". We read a transcription, not the facsimile.
How many bytes a character takes in UTF-8
A byte is not always a letter. In UTF-8 (RFC 3629), the first 128 characters (ASCII, with the unaccented letters) take 1 byte; the others take 2 to 4: up to U+07FF, 2; up to U+FFFF, 3; up to U+10FFFF, 4. We measured the table in four programs: Node (TextEncoder), Perl (Encode), .NET (through PowerShell) and the RFC's rule written by hand in GNU awk. All four gave the same result in the seven cases, on December 1, 2026.
| Text | Code points (Unicode) | Bytes in UTF-8 | The bytes, in hexadecimal |
|---|---|---|---|
| a | U+0061 | 1 | 61 |
| ç | U+00E7 | 2 | c3a7 |
| ã | U+00E3 | 2 | c3a3 |
| a + combining tilde (2 code points) | U+0061 U+0303 | 3 | 61cc83 |
| € | U+20AC | 3 | e282ac |
| 😀 | U+1F600 | 4 | f09f9880 |
| ação (4 characters) | U+0061 U+00E7 U+00E3 U+006F | 6 | 61c3a7c3a36f |
The "ã" appears twice on purpose: as a single code point it takes 2 bytes; written as "a" plus the combining tilde, it takes 3.
The two conventions: decimal SI and binary IEC, up to quetta
In the decimal one (SI) each step multiplies by 1,000; in the binary one (IEC), by 1,024. The gap grows at every level, from 2.40% at kilo to 20.89% at yotta.
| Units | SI (decimal), in bytes | IEC (binary), in bytes | IEC is larger by |
|---|---|---|---|
| Kilobyte (kB) / Kibibyte (KiB) | 1,000 | 1,024 | 2.40 % |
| Megabyte (MB) / Mebibyte (MiB) | 1,000,000 | 1,048,576 | 4.86 % |
| Gigabyte (GB) / Gibibyte (GiB) | 1,000,000,000 | 1,073,741,824 | 7.37 % |
| Terabyte (TB) / Tebibyte (TiB) | 1,000,000,000,000 | 1,099,511,627,776 | 9.95 % |
| Petabyte (PB) / Pebibyte (PiB) | 1,000,000,000,000,000 | 1,125,899,906,842,624 | 12.59 % |
| Exabyte (EB) / Exbibyte (EiB) | 1,000,000,000,000,000,000 | 1,152,921,504,606,846,976 | 15.29 % |
| Zettabyte (ZB) / Zebibyte (ZiB) | 1,000,000,000,000,000,000,000 | 1,180,591,620,717,411,303,424 | 18.06 % |
| Yottabyte (YB) / Yobibyte (YiB) | 1,000,000,000,000,000,000,000,000 | 1,208,925,819,614,629,174,706,176 | 20.89 % |
| Ronnabyte (RB) | 1,000,000,000,000,000,000,000,000,000 | — | — |
| Quettabyte (QB) | 1,000,000,000,000,000,000,000,000,000,000 | — | — |
The full list, with every name, bytes and bits, is in the Appendix, at the end of the article.
The scale, in words:
| Unit | In terabytes (TB) | In words |
|---|---|---|
| 1 PB | 1,000 TB | a thousand terabytes |
| 1 EB | 1,000,000 TB | a million terabytes |
| 1 ZB | 1,000,000,000 TB | a billion terabytes |
| 1 YB | 1,000,000,000,000 TB | a trillion terabytes |
Where the prefixes come from (sources opened on December 1, 2026):
- Ronna (R, 10²⁷) and quetta (Q, 10³⁰): BIPM, 27th General Conference on Weights and Measures, Resolution 3 (2022); the official version is the French text. Yotta (Y, 10²⁴): Resolution 4 of the 19th Conference, in 1991.
- Kibi to exbi (Ki to Ei): approved by the IEC in December 1998, according to NIST; not part of the SI.
- ZiB and YiB: values from the GNU coreutils 9.12 documentation. We did not read the table of the IEC standard that defines them; Wikipedia (a secondary source) gives the same values.
- What was left out: the 2025 edition of IEC 80000-13 says it added new binary prefixes; the GNU coreutils 9.12 documentation calls them robi (Ri, 1024⁹) and quebi (Qi, 1024¹⁰); we could not read the standard's table.
Why 1 TB shows as 931 GB
A 1 TB drive has 1,000,000,000,000 bytes (10¹²). A program that counts in base 2 divides by 1,073,741,824 (2³⁰, one GiB) and writes "GB": the result is exactly 931.322574615478515625 GiB. The drive has the bytes it advertises; the number is smaller because the unit is 7.37% larger. The last column of the table is what a function of Windows itself writes for the same number of bytes (measured on December 1, 2026):
| Advertised capacity (decimal) | In GiB (exact value) | What the Windows size formatter writes |
|---|---|---|
| 128 GB | 119.20928955078125 GiB | 119 GB |
| 256 GB | 238.4185791015625 GiB | 238 GB |
| 500 GB | 465.6612873077392578125 GiB | 465 GB |
| 512 GB | 476.837158203125 GiB | 476 GB |
| 1,000 GB | 931.322574615478515625 GiB | 931 GB |
| 2,000 GB | 1,862.64514923095703125 GiB | 1,81 TB |
| 4,000 GB | 3,725.2902984619140625 GiB | 3,63 TB |
- Windows. We called
StrFormatByteSizeW(fromshlwapi.dll), which Microsoft describes as the function that converts a number into a size string. It is a system API, not the Explorer: we did not measure the Explorer window. Windows 11 Pro, build 26200, in Brazilian Portuguese (hence the decimal comma in "1,81 TB"). We found no Microsoft documentation that defines the "GB" it writes. - macOS. Apple's page "How storage capacity is measured on Apple devices" (02/26/2025) says OS X Leopard and earlier and iOS 10 and earlier report capacity in the binary system, and that manufacturers measure in decimal. It does not say what current macOS shows, and we did not test on a Mac.
- Linux. The
dfmanual (GNU coreutils 9.12) says-huses powers of 1024 and-H(--si), powers of 1000. - Drive makers. An explanation published by a drive maker is not cited: its server refused our reading.
Mb versus MB, and Mbps
Mbps means megabits per second. To get to bytes, divide by 8. A 100 Mbps connection moves, at the theoretical maximum, 100,000,000 bits per second: 12,500,000 bytes per second, or 12.5 MB/s (11.92 MiB/s).
The size limits of our tools
The Kastavo tools that take files have a size limit. Their text writes "MB" informally, but the real limit is in MiB: 50 MiB for PDF, 20 for images and 200 for video (52,428,800, 20,971,520 and 209,715,200 bytes). A PDF of 50,000,000 bytes is accepted; one of 52,428,801 is not. We tested the values, the exact limit, one byte more and the messages in the three languages.
| Tools | Limit in the code, in bytes | In MiB | In decimal MB | Above the limit |
|---|---|---|---|---|
| PDF tools (12) | 52,428,800 | 50 | 52.4288 | refused before it is read, with a message; the other files in the drop are kept |
| Image tools (20) | 20,971,520 | 20 | 20.97152 | refused before it is read, with a message; the other files in the drop are kept |
| Video tools (5), file size | 209,715,200 | 200 | 209.7152 | refused before it is read, with a message |
| Video tools (5), length | — | — | — | 15 min on a computer, 5 min on a phone: refused with a message, after its length is read |
The limits protect the browser's memory (a design decision; we did not measure the freeze). For html-to-pdf and the subtitle file, the code imposes no limit, and we did not test very large files. Fixing the tools' text to say "MiB" is left for later.
Estimates vary
Without an exact value, what shows up in pages and manuals is often an estimate with hidden premises. Apple (page of 02/26/2025) writes 1 TB as 1 trillion bytes; the Windows function (measured by us on 12/01/2026) shows 931 GB for the same drive: the same 10¹² bytes, one in decimal and the other divided by 2³⁰.
To estimate a media file, put the premise in plain sight: bytes = (bits per second × seconds) ÷ 8. Each row has the bit rate and the length (1 kbit = 1,000 bits, no format overhead; a real file has that overhead).
| Premise (bit rate and length) | Bytes per second | Bytes in total | In decimal MB | In MiB (2 decimals) |
|---|---|---|---|---|
| audio, 128 kbit/s, 3 min | 16,000 | 2,880,000 | 2.88 | 2.75 |
| audio, 192 kbit/s, 3 min | 24,000 | 4,320,000 | 4.32 | 4.12 |
| audio, 320 kbit/s, 3 min | 40,000 | 7,200,000 | 7.2 | 6.87 |
| video, 8 Mbit/s, 3 min | 1,000,000 | 180,000,000 | 180 | 171.66 |
What we did not check
- The Explorer, the Finder,
dfand the table of IEC 80000-13:2025: we measured Windows' formatting function and read Apple's page, the GNU manual and the standard's description; we did not run the three programs or read the standard's table. - The Windows "GB" in Microsoft's documentation, a drive maker's explanation and the total volume of data in the world: no primary source, or the reading was refused; we do not use numbers without a primary source. We did not test Safari, Firefox or real phones: what we said about the tools was tested in Chromium.
Sources and dates
All opened by us on December 1, 2026, except where noted.
- BIPM, Resolution 3 of the 27th CGPM (2022) and the SI prefixes.
- NIST, prefixes for binary multiples.
- IEC, IEC 80000-13:2025: published on 02/11/2025, edition 2.0; the page says "addition of new prefixes for binary multiples".
- GNU coreutils 9.12: df and block sizes.
- Apple, how storage capacity is measured.
- Microsoft, StrFormatByteSizeW.
- IETF, RFC 3629: UTF-8 (November 2003).
- Letter from Werner Buchholz to BYTE magazine, February 1977, a transcription from the Computer History Museum.
- Wikipedia, Binary prefix: secondary support (zebi and yobi).
Frequently asked questions
In the SI (decimal), 1 GB is 1,000 MB; in the IEC (binary), 1 GiB is 1,024 MiB. See the two conventions.
Because 10¹² bytes divided by 2³⁰ is 931.32 GiB, and the program writes "GB". See the open math.
1 YB is 10²⁴ bytes, or a trillion terabytes (10¹² TB). In binary, 1 YiB is 2⁸⁰ bytes, about 21% more. To store 1 YB on 4 TB drives, you would need 250 billion drives. After it came ronna (a thousand yottabytes) and quetta (a million), adopted in 2022 by the BIPM. At 1 Gbps (10⁹ bits per second, lossless, a 365-day year), downloading 1 YB would take about 254 million years. See the scale in words.
kB (lowercase k) is the SI symbol for 1,000 bytes; KiB, the IEC one for 1,024. KB with a capital K is the symbol of neither. See the two conventions.
A bit is 0 or 1; a byte is 8 bits, with 256 values. See bit and byte.
Mb are megabits and MB, megabytes: a hundred Mbps is, at the theoretical maximum, 12.5 MB per second. See the math.
To protect the browser's memory. The real limit is in MiB (50, 20 and 200). See the limits.
Appendix: the full table
Decimal (SI) first, then binary (IEC); exact values.
| Unit | In bytes | In bits |
|---|---|---|
| Bit (bit) | 0.125 | 1 |
| Byte (B) | 1 | 8 |
| Kilobyte (kB) | 1,000 | 8,000 |
| Megabyte (MB) | 1,000,000 | 8,000,000 |
| Gigabyte (GB) | 1,000,000,000 | 8,000,000,000 |
| Terabyte (TB) | 1,000,000,000,000 | 8,000,000,000,000 |
| Petabyte (PB) | 1,000,000,000,000,000 | 8,000,000,000,000,000 |
| Exabyte (EB) | 1,000,000,000,000,000,000 | 8,000,000,000,000,000,000 |
| Zettabyte (ZB) | 1,000,000,000,000,000,000,000 | 8,000,000,000,000,000,000,000 |
| Yottabyte (YB) | 1,000,000,000,000,000,000,000,000 | 8,000,000,000,000,000,000,000,000 |
| Ronnabyte (RB) | 1,000,000,000,000,000,000,000,000,000 | 8,000,000,000,000,000,000,000,000,000 |
| Quettabyte (QB) | 1,000,000,000,000,000,000,000,000,000,000 | 8,000,000,000,000,000,000,000,000,000,000 |
| Kibibyte (KiB) | 1,024 | 8,192 |
| Mebibyte (MiB) | 1,048,576 | 8,388,608 |
| Gibibyte (GiB) | 1,073,741,824 | 8,589,934,592 |
| Tebibyte (TiB) | 1,099,511,627,776 | 8,796,093,022,208 |
| Pebibyte (PiB) | 1,125,899,906,842,624 | 9,007,199,254,740,992 |
| Exbibyte (EiB) | 1,152,921,504,606,846,976 | 9,223,372,036,854,775,808 |
| Zebibyte (ZiB) | 1,180,591,620,717,411,303,424 | 9,444,732,965,739,290,427,392 |
| Yobibyte (YiB) | 1,208,925,819,614,629,174,706,176 | 9,671,406,556,917,033,397,649,408 |
Text, calculations and reading of sources done with the help of an AI assistant and reviewed by Michel Davi. When the text says "we", that is who we mean. See how we produce our content on the About page.


