Kastavo

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 row of eight squares, some lit and some dark, standing for the eight bits of a byte, with five ever larger blocks below, on a dark background

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

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.

TextCode points (Unicode)Bytes in UTF-8The bytes, in hexadecimal
aU+0061161
çU+00E72c3a7
ãU+00E32c3a3
a + combining tilde (2 code points)U+0061 U+0303361cc83
€U+20AC3e282ac
😀U+1F6004f09f9880
ação (4 characters)U+0061 U+00E7 U+00E3 U+006F661c3a7c3a36f

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.

UnitsSI (decimal), in bytesIEC (binary), in bytesIEC is larger by
Kilobyte (kB) / Kibibyte (KiB)1,0001,0242.40 %
Megabyte (MB) / Mebibyte (MiB)1,000,0001,048,5764.86 %
Gigabyte (GB) / Gibibyte (GiB)1,000,000,0001,073,741,8247.37 %
Terabyte (TB) / Tebibyte (TiB)1,000,000,000,0001,099,511,627,7769.95 %
Petabyte (PB) / Pebibyte (PiB)1,000,000,000,000,0001,125,899,906,842,62412.59 %
Exabyte (EB) / Exbibyte (EiB)1,000,000,000,000,000,0001,152,921,504,606,846,97615.29 %
Zettabyte (ZB) / Zebibyte (ZiB)1,000,000,000,000,000,000,0001,180,591,620,717,411,303,42418.06 %
Yottabyte (YB) / Yobibyte (YiB)1,000,000,000,000,000,000,000,0001,208,925,819,614,629,174,706,17620.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:

UnitIn terabytes (TB)In words
1 PB1,000 TBa thousand terabytes
1 EB1,000,000 TBa million terabytes
1 ZB1,000,000,000 TBa billion terabytes
1 YB1,000,000,000,000 TBa 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 GB119.20928955078125 GiB119 GB
256 GB238.4185791015625 GiB238 GB
500 GB465.6612873077392578125 GiB465 GB
512 GB476.837158203125 GiB476 GB
1,000 GB931.322574615478515625 GiB931 GB
2,000 GB1,862.64514923095703125 GiB1,81 TB
4,000 GB3,725.2902984619140625 GiB3,63 TB
  • Windows. We called StrFormatByteSizeW (from shlwapi.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 df manual (GNU coreutils 9.12) says -h uses 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.

ToolsLimit in the code, in bytesIn MiBIn decimal MBAbove the limit
PDF tools (12)52,428,8005052.4288refused before it is read, with a message; the other files in the drop are kept
Image tools (20)20,971,5202020.97152refused before it is read, with a message; the other files in the drop are kept
Video tools (5), file size209,715,200200209.7152refused 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 secondBytes in totalIn decimal MBIn MiB (2 decimals)
audio, 128 kbit/s, 3 min16,0002,880,0002.882.75
audio, 192 kbit/s, 3 min24,0004,320,0004.324.12
audio, 320 kbit/s, 3 min40,0007,200,0007.26.87
video, 8 Mbit/s, 3 min1,000,000180,000,000180171.66

What we did not check

  • The Explorer, the Finder, df and 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.

Frequently asked questions

Appendix: the full table

Decimal (SI) first, then binary (IEC); exact values.

UnitIn bytesIn bits
Bit (bit)0.1251
Byte (B)18
Kilobyte (kB)1,0008,000
Megabyte (MB)1,000,0008,000,000
Gigabyte (GB)1,000,000,0008,000,000,000
Terabyte (TB)1,000,000,000,0008,000,000,000,000
Petabyte (PB)1,000,000,000,000,0008,000,000,000,000,000
Exabyte (EB)1,000,000,000,000,000,0008,000,000,000,000,000,000
Zettabyte (ZB)1,000,000,000,000,000,000,0008,000,000,000,000,000,000,000
Yottabyte (YB)1,000,000,000,000,000,000,000,0008,000,000,000,000,000,000,000,000
Ronnabyte (RB)1,000,000,000,000,000,000,000,000,0008,000,000,000,000,000,000,000,000,000
Quettabyte (QB)1,000,000,000,000,000,000,000,000,000,0008,000,000,000,000,000,000,000,000,000,000
Kibibyte (KiB)1,0248,192
Mebibyte (MiB)1,048,5768,388,608
Gibibyte (GiB)1,073,741,8248,589,934,592
Tebibyte (TiB)1,099,511,627,7768,796,093,022,208
Pebibyte (PiB)1,125,899,906,842,6249,007,199,254,740,992
Exbibyte (EiB)1,152,921,504,606,846,9769,223,372,036,854,775,808
Zebibyte (ZiB)1,180,591,620,717,411,303,4249,444,732,965,739,290,427,392
Yobibyte (YiB)1,208,925,819,614,629,174,706,1769,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.

Tools used in this guide

Keep reading

This website uses cookies

We use cookies to improve your experience and understand how the site is used. You can change this choice anytime in Cookie Preferences. See our Privacy Policy.