SIMETRIUM .COM B · ISO/IEC 80000-13
Buchholz · 1956
EN|36 languages
Letter and byte
A Latin letter takes one byte in UTF-8, a Russian one takes two, a CJK character takes three, and an emoji a full four. The four-letter Russian word “Bayt” (byte), written in Cyrillic, needs eight bytes.
1000 or 1024
A disk maker counts a gigabyte as a billion bytes, while Windows counts it as 2³⁰. That is why a one-terabyte disk shows 931 “gigabytes”, even though not a single byte has gone missing.
On the plate is the front panel of a 1970s computer. In those years a program was entered by hand: you set a byte on eight toggle switches, pressed DEPOSIT, and the byte went into memory, after which you set the next one. Here the panel writes the four Cyrillic letters of the Russian word “Bayt” (byte) one after another in UTF-8; each of them takes two bytes, so the switches have to be reset eight times.
Unit passport · computer science · data size

Byte

byte · 1 B = 8 bit · 256 values · 1000 B — kB · 1024 B — KiB

A person buys an external disk with “1 TB” printed in large letters on the box, plugs it into a computer and sees 931 GB in the properties. It looks as if the seller cheated by seven percent, but there is no cheating: on the box a terabyte means a trillion bytes, while Windows divides the same number by 1024 three times in a row and labels the result with the same letters. The disk holds exactly as many bytes as promised; they are just counted with two different yardsticks.

A byte is eight bits, the smallest portion of memory that has an address of its own. Eight bits hold 256 different values: a number from 0 to 255, a signed number from −128 to 127, or one character of an old single-byte encoding. What a byte actually stores is decided by the program: the same eight bits are read in one encoding as a Russian letter, in another as a Latin letter with a diacritic, and in a third as half of a Japanese character. When the program guesses wrong, mojibake appears on the screen.

What it is
eight binary digits, the smallest addressable memory cell
Notation
B; in Russian Б, in French o — octet
Standard
ISO/IEC 80000-13; binary prefixes — IEC 60027-2, 1998
Prefixes
10³ B — kB, 10⁶ B — MB; 2¹⁰ B — KiB, 2²⁰ B — MiB
Values
2⁸ = 256: from 0 to 255 or from −128 to 127
Notation
two hexadecimal digits: 00 … FF; each digit is a nibble
To the conversion To the bit page
Conversion

From one unit to all

Enter a number and choose a unit. On the left of the table are the decimal prefixes used on disks, flash drives and data plans; on the right are the binary ones used for RAM and in Windows.

COMMON CASES
decimal · 1000
binary · 1024

Etymology

A bite, an eight and a shape-shifter

The word byte was coined in 1956 at IBM, where the Stretch computer was being designed: it named the group of bits that the machine processes in one go. The French and the authors of network standards preferred the word “octet”, which leaves no doubt about the number of bits. And for text read in the wrong encoding, every language has found its own vivid word.

byteEng., 1956
OE bītan · to bite→bite · a bite, a piece→byte
Werner Buchholz, an IBM engineer, gave this name to the portion of bits the machine “bites off”. He deliberately replaced the i with a y: one typo would turn bite into bit, which is a completely different quantity. Half a byte was jokingly nicknamed nibble — a small bite, to nibble.
octetFr.
Lat. octo · eight→octet in music · a group of eight→o, ko, Mo, Go
On the first computers a byte could be six or nine bits as well, which is why network standards call eight bits an octet. In France, Quebec and Romania it is the everyday word: on a French box the disk is labelled “1 To”, and a file is “3 Mo”.
文字化けJap. mojibake
文字 moji · written character+化け bake · shape-shifter→mojibake
The verb bakeru means “to take on another form”, as the fox spirits of Japanese folk tales do: the characters of the text seem to turn into someone else's. The Japanese ran into this more often than anyone, since three encodings lived side by side there for a long time, and the word mojibake has entered many languages.
What it is called in other languages
字节 zìjié — Chinese: “link of a character”; mojibake is 乱码 luànmǎ, “scrambled code”
バイト baito — Japanese; in conversation the same word means “a side job”, from the German Arbeit
بايت bāyt — Arabic; mojibake is called “رموز غريبة”, “strange symbols”
octet, o — French; in Portugal and Brazil they say byte, but octeto also appears in standards
байт — Russian, Mongolian, Kazakh; mojibake is krakozyabry, krokozyabry, a playful Russian word of the 1990s
बाइट — Hindi; 바이트 — Korean; mojibake is 외계어, “alien language”
KiB · MiB · GiB
kibibyte, mebibyte, gibibyte: kilo binary, mega binary, giga binary — IEC, 1998
UTF-8
Unicode Transformation Format, 8-bit: Unicode written as variable-length bytes
ASCII
American Standard Code for Information Interchange, 1963 — the seven-bit basis of all encodings
KOI-8
“code for information interchange, eight-bit”, GOST 19768-74
01 · Definition

Eight bits and an address

Computer memory is laid out like a long street of identical little houses, each with its own number. Exactly one byte lives in each house, and the processor cannot read or write less than a byte: to change one bit, it reads the whole byte, changes the bit in it and writes the byte back. That is why the size of memory, files and disks is always counted in bytes, while the speed of transmission over wires is counted in bits.

Eight bits were not chosen by accident. Eight is a power of two, and the number of a bit within a byte fits into three bits. A byte holds two decimal digits of four bits each, convenient for bookkeeping calculations, or one letter of an alphabet with room to spare. When IBM released the System/360 with an eight-bit byte in 1964, other manufacturers gradually followed its example.

bᵢ — bit number i · n — number of bytes · N — number of values · x — value of the byte · d — decimal number of bytes · k — prefix exponent
Interactive · how many bytes

From a letter to a disk

Choose an item and compare how its size looks in decimal and in binary prefixes. The scale is logarithmic: each division is a thousand times larger than the previous one.

Reference · benchmark values
1 B = 8 bit256 values, two hexadecimal digits 1 KiB = 1024 B2.4 % more than 1 kB; by the tebibyte the difference grows to 10 % 1 474 560 Bthe “1.44 MB” floppy: that is 1440 KiB, the prefixes are mixed 255 + 1 = 0in an unsigned byte the number “wraps around” through zero
Interactive · three experiments with a byte

Set it, read it, count it

In the Register experiment, touch the bits or add numbers and watch how the same byte is read as an unsigned number, a signed number and a letter in four encodings; the dial shows where the number overflows. In the Encoding experiment, type a phrase in any language, save it in one encoding and open it in another. In the Capacity experiment, choose a medium and the system that will display it, and the difference between the yardsticks becomes visible on the scale.

Value
Save as encoding
Open as
Medium
Shown by
Used by files

Chart · two yardsticks
How much bigger the binary prefix is
With each step the difference between 1000ⁿ and 1024ⁿ grows: for the kilobyte it is 2.4 %, for the terabyte already 10 %, for the quettabyte almost 27 %. The bright bar is the prefix of the medium chosen in the Capacity experiment.
prefixby how much 1024ⁿ exceeds 1000ⁿ
Chart · bytes per character
What a letter costs in different languages
The average size of a character in each phrase of the Encoding experiment when written in UTF-8, in UTF-16 and in a national encoding, if there is one. The selected phrase is highlighted.
■ UTF-8 · ■ UTF-16 · ■ own encodingbytes per character
02 · Machine memory

From two hundred bytes to tens of gigabytes

The byte got its name on the American Stretch computer, the IBM System/360 fixed eight bits in it, and then memory began to grow roughly twofold every two to three years. Personal computers of America, Europe, Japan and the Soviet Union all followed the same path: from hundreds of bytes entered with toggle switches to gigabytes in a pocket. The chart shows the RAM of a popular machine in its base configuration.

memorybyte
03 · Encodings of different countries

Every alphabet had its own table

American ASCII took the first 128 values of a byte, and each country disposed of the remaining 128 in its own way. The Soviet Union produced KOI-8, in which the Russian letters stand in the places of similar-sounding Latin ones, so that a text with the eighth bit lost remains readable as transliteration. Microsoft introduced Windows-1251 for the same Cyrillic, and code page 866 served DOS. One byte was not enough at all for Japan, China and Korea, so they devised double-byte encodings: Shift_JIS, GB 2312 and its successors GBK and GB 18030, EUC-KR, and in Taiwan and Hong Kong, Big5.

Since 1991 Unicode has given every character of all scripts a number of its own, and UTF-8 writes this number as one, two, three or four bytes. The first 128 characters in UTF-8 coincide with ASCII, so old English-language files stayed valid. Today almost all content of the web is written in UTF-8, but old encodings are still found in archives, in bank files and in email.

CHARACTERS TO TRY
encoding
where and when
bytes

04 · The first bytes of a file

A file names itself

The extension in a file name can be rewritten at will, but the first bytes of the content give away its true kind. This mark is called a signature, or magic number. A PNG image always begins with the same eight bytes, a PDF document with the characters “%PDF”, a ZIP archive, and with it DOCX and XLSX files, with the letters “PK”, the initials of Phil Katz, who devised the format. A Windows program begins with “MZ”, the initials of Mark Zbikowski, one of the developers of MS-DOS.

Hex view · 16 bytes

05 · Writing rules
Correct
1 B = 8 bit; byte is a capital B, bit is bit
500 GB = 500 · 10⁹ B, as written on disk boxes
16 GiB = 16 · 2³⁰ B, as RAM is sold
kB with a lowercase k, like all decimal prefixes
in France 1 Mo is the same as 1 MB
Incorrect
Mb when megabytes are meant: b is a bit
“the disk stole 69 gigabytes”: they were counted with a different yardstick
counting 1024 B as one kB: that is what KiB is for
a “1.44 MB” floppy as 1.44 million bytes: it holds 1 474 560
“a text of 100 characters is 100 bytes” when the characters are not Latin
06 · Neighbouring units
07 · Historical section
01000010420x42 = «B»
two nibbles · two digits
Note

In the summer of 1956 IBM was designing Stretch, the fastest machine of its time. Its designers wanted to process not only whole words of 64 bits but also short groups: a six-bit character, a four-bit digit, a single flag. Werner Buchholz called such a group a byte. At first the length of a byte in Stretch was variable, from one to eight bits, and the word itself meant only “how many bits the machine takes at a time”.

Eight bits became law only eight years later, with the System/360. That was also when the habit arose of writing a byte as two hexadecimal digits: each digit describes exactly four bits, and 0x42 is easier to read than 01000010. On old machines such as the PDP-10 a byte could still be of any length, which is why network protocols still write “octet” where an ordinary reader would say “byte”.

Stretch, 1956bitebyte
so as not to confuse it with bit
one letter against a typo
Catalogue of quantities
the whole index →
the foundation · 7 units

The seven SI base units

related to this page · data and signals
The index lab: a glass of cabbage juice, a burner, a glass of water on a cold plate and a gear train
Index · all quantities on one page
The lab at the entrance to the index

A drop of acid changes the colour of the juice, salt colours the flame, water freezes at a tap. Below them are all Simetrium sheets, by discipline and alphabetically.

Open the index →
08 · Your language
every link is a real page in that locale

Read it in your own language

translated and checkeddraft translationqueued