Byte
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.
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.
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.
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.
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.
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.
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.
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.
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.
05 · Writing rules
06 · Neighbouring units
07 · Historical section
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”.
Catalogue of quantities
the whole index →The seven SI base units
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 →





