The octet is a unit of digital information equal to exactly eight bits. Its symbol is octet, and its name comes from the Latin for a group of eight. It is the unit in which nearly all stored data is counted, and the reason it is called an octet rather than a byte is worth knowing.
A byte was originally the number of bits a machine used to hold one character, and that number was not fixed. Early computers used six-bit bytes, some used seven, and a few used nine. The IBM System/360 of 1964 settled on eight and its commercial success made eight the norm, but the word byte kept its older, machine-dependent meaning in specifications where ambiguity was dangerous.
The networking world therefore adopted octet. When a protocol standard says a header field is four octets long, no reader anywhere can interpret that as anything but thirty-two bits. The internet standards published by the IETF use octet throughout for exactly that reason, and French, Romanian and several other languages adopted the word for ordinary use as well, so that a hard disc sold in France is measured in gigaoctets.
Eight bits hold 256 distinct values, which is why so many things come in units of 256. A colour channel runs from 0 to 255. An IPv4 address is four octets, written as four numbers each between 0 and 255. The original ASCII character set used seven bits, leaving one spare, and the various eight-bit extensions that followed each filled that spare bit with a different set of accented letters — the mess that Unicode eventually replaced.
Modern text encoding still counts in octets. UTF-8 uses one octet for the unaccented Latin alphabet, two for most European accented letters and Greek and Cyrillic, three for Chinese, Japanese and Korean, and four for the rest. That is why the same sentence occupies different amounts of storage in different languages, and why a text-length limit measured in octets is not a limit on characters.
Storage capacity, file sizes, memory and network payloads are all quoted in octets or their multiples. Transmission rates are the exception, being quoted in bits per second, and the factor of eight between the two conventions is the single most common source of confusion in the field.
One octet equals 8 bits, 0.008 kilobits, or 0.001 kilooctets.
| Unit | Symbol | 1 Octet equals | 1 of these equals | Converter |
|---|---|---|---|---|
| Bit | bit | 8 bit | 0.125 octet | Octets to Bits |
| Kilobit | kbit | 0.008 kbit | 125 octet | Octets to Kilobits |
| Megabit | Mbit | 0.000008 Mbit | 125000 octet | Octets to Megabits |
| Gigabit | Gbit | 0.000000008 Gbit | 125000000 octet | Octets to Gigabits |
| Terabit | Tbit | 8 × 10-12 Tbit | 125000000000 octet | Octets to Terabits |
| Petabit | Pbit | 8 × 10-15 Pbit | 125000000000000 octet | Octets to Petabits |
| Exabit | Ebit | 8 × 10-18 Ebit | 1.25 × 1017 octet | Octets to Exabits |
| Zettabit | Zbit | 8 × 10-21 Zbit | 1.25 × 1020 octet | Octets to Zettabits |
| Yottabit | Ybit | 8 × 10-24 Ybit | 1.25 × 1023 octet | Octets to Yottabits |
| Kilooctet | ko | 0.001 ko | 1000 octet | Octets to Kilooctets |
| Megaoctet | Mo | 0.000001 Mo | 1000000 octet | Octets to Megaoctets |
| Gigaoctet | Go | 0.000000001 Go | 1000000000 octet | Octets to Gigaoctets |
| Teraoctet | To | 1 × 10-12 To | 1000000000000 octet | Octets to Teraoctets |
| Petaoctet | Po | 1 × 10-15 Po | 1 × 1015 octet | Octets to Petaoctets |
| Exaoctet | Eo | 1 × 10-18 Eo | 1 × 1018 octet | Octets to Exaoctets |
| Zettaoctet | Zo | 1 × 10-21 Zo | 1 × 1021 octet | Octets to Zettaoctets |
| Yottaoctet | Yo | 1 × 10-24 Yo | 1 × 1024 octet | Octets to Yottaoctets |
| Kibibit | Kibit | 0.0078125 Kibit | 128 octet | Octets to Kibibits |
| Mebibit | Mibit | 0.00000762939453125 Mibit | 131072 octet | Octets to Mebibits |
| Gibibit | Gibit | 0.00000000745058059692 Gibit | 134217728 octet | Octets to Gibibits |
| Tebibit | Tibit | 7.27595761418 × 10-12 Tibit | 137438953472 octet | Octets to Tebibits |
| Pebibit | Pibit | 7.1054273576 × 10-15 Pibit | 140737488355328 octet | Octets to Pebibits |
| Exbibit | Eibit | 6.93889390391 × 10-18 Eibit | 1.44115188076 × 1017 octet | Octets to Exbibits |
| Zebibit | Zibit | 6.77626357803 × 10-21 Zibit | 1.4757395259 × 1020 octet | Octets to Zebibits |
| Yobibit | Yibit | 6.61744490042 × 10-24 Yibit | 1.51115727452 × 1023 octet | Octets to Yobibits |
| Kibioctet | Kio | 0.0009765625 Kio | 1024 octet | Octets to Kibioctets |
| Mebioctet | Mio | 0.000000953674316406 Mio | 1048576 octet | Octets to Mebioctets |
| Gibioctet | Gio | 9.31322574615 × 10-10 Gio | 1073741824 octet | Octets to Gibioctets |
| Tebioctet | Tio | 9.09494701773 × 10-13 Tio | 1099511627776 octet | Octets to Tebioctets |
| Pebioctet | Pio | 8.881784197 × 10-16 Pio | 1.12589990684 × 1015 octet | Octets to Pebioctets |
| Exbioctet | Eio | 8.67361737988 × 10-19 Eio | 1.15292150461 × 1018 octet | Octets to Exbioctets |
| Zebioctet | Zio | 8.47032947254 × 10-22 Zio | 1.18059162072 × 1021 octet | Octets to Zebioctets |
| Yobioctet | Yio | 8.27180612553 × 10-25 Yio | 1.20892581961 × 1024 octet | Octets to Yobioctets |