Octet (octet)

Data unit · SI system

All units Data converter

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.

Octet conversion table

UnitSymbol1 Octet equals1 of these equalsConverter
Bitbit8 bit0.125 octetOctets to Bits
Kilobitkbit0.008 kbit125 octetOctets to Kilobits
MegabitMbit0.000008 Mbit125000 octetOctets to Megabits
GigabitGbit0.000000008 Gbit125000000 octetOctets to Gigabits
TerabitTbit8 × 10-12 Tbit125000000000 octetOctets to Terabits
PetabitPbit8 × 10-15 Pbit125000000000000 octetOctets to Petabits
ExabitEbit8 × 10-18 Ebit1.25 × 1017 octetOctets to Exabits
ZettabitZbit8 × 10-21 Zbit1.25 × 1020 octetOctets to Zettabits
YottabitYbit8 × 10-24 Ybit1.25 × 1023 octetOctets to Yottabits
Kilooctetko0.001 ko1000 octetOctets to Kilooctets
MegaoctetMo0.000001 Mo1000000 octetOctets to Megaoctets
GigaoctetGo0.000000001 Go1000000000 octetOctets to Gigaoctets
TeraoctetTo1 × 10-12 To1000000000000 octetOctets to Teraoctets
PetaoctetPo1 × 10-15 Po1 × 1015 octetOctets to Petaoctets
ExaoctetEo1 × 10-18 Eo1 × 1018 octetOctets to Exaoctets
ZettaoctetZo1 × 10-21 Zo1 × 1021 octetOctets to Zettaoctets
YottaoctetYo1 × 10-24 Yo1 × 1024 octetOctets to Yottaoctets
KibibitKibit0.0078125 Kibit128 octetOctets to Kibibits
MebibitMibit0.00000762939453125 Mibit131072 octetOctets to Mebibits
GibibitGibit0.00000000745058059692 Gibit134217728 octetOctets to Gibibits
TebibitTibit7.27595761418 × 10-12 Tibit137438953472 octetOctets to Tebibits
PebibitPibit7.1054273576 × 10-15 Pibit140737488355328 octetOctets to Pebibits
ExbibitEibit6.93889390391 × 10-18 Eibit1.44115188076 × 1017 octetOctets to Exbibits
ZebibitZibit6.77626357803 × 10-21 Zibit1.4757395259 × 1020 octetOctets to Zebibits
YobibitYibit6.61744490042 × 10-24 Yibit1.51115727452 × 1023 octetOctets to Yobibits
KibioctetKio0.0009765625 Kio1024 octetOctets to Kibioctets
MebioctetMio0.000000953674316406 Mio1048576 octetOctets to Mebioctets
GibioctetGio9.31322574615 × 10-10 Gio1073741824 octetOctets to Gibioctets
TebioctetTio9.09494701773 × 10-13 Tio1099511627776 octetOctets to Tebioctets
PebioctetPio8.881784197 × 10-16 Pio1.12589990684 × 1015 octetOctets to Pebioctets
ExbioctetEio8.67361737988 × 10-19 Eio1.15292150461 × 1018 octetOctets to Exbioctets
ZebioctetZio8.47032947254 × 10-22 Zio1.18059162072 × 1021 octetOctets to Zebioctets
YobioctetYio8.27180612553 × 10-25 Yio1.20892581961 × 1024 octetOctets to Yobioctets