Safekipedia

Byte

Adapted from Wikipedia · Adventurer experience

The byte is a unit of digital information that usually has eight bits. It is the smallest piece of memory a computer can use. Bytes help store letters, numbers, and other small pieces of data. Because of this, bytes are very important for how computers handle and store information.

In the past, the size of a byte changed depending on the computer. It could have from 1 to 48 bits. Early computers often used bytes with six or nine bits. Over time, the eight-bit byte became the standard. This makes it easier to work with numbers from 0 to 255.

Today, the eight-bit byte is used all around the world. It is supported by international rules and used in almost all modern computers. This standard helps computers and programs communicate clearly. The symbol for a byte is the letter B, while an octet means exactly eight bits.

Etymology and history

The word byte was first used by Werner Buchholz in 1956 when he worked on the IBM Stretch computer. He chose byte instead of bite to avoid confusion with the word bit.

Early computers used different sizes for a byte, sometimes four bits or six bits. In the 1960s, two standards were made: ASCII used seven bits, and IBM's System/360 used eight bits in a system called EBCDIC. The System/360 became very popular, and the eight-bit byte became the standard we use today.

In the 1970s, microprocessors like the Intel 8080 made the eight-bit byte even more common. Sometimes, a four-bit piece of a byte is called a nibble. To clearly mean eight bits, some documents use the word octet instead of byte.

Unit symbol

The symbol for a byte is the uppercase letter B.

In some systems, B is also used for a different measurement called the bel, but this rarely causes confusion. The bel is mostly used in its smaller form, the decibel, for measuring things like sound and signal strength. The lowercase letter o stands for an octet, which is another name for an 8-bit byte, and is used in some languages like French and Romanian.

Multiple-byte units

Several terms redirect here. For other uses, see EIB (disambiguation), Yottabyte (disambiguation), KIB (disambiguation), MIB (disambiguation), GIB (disambiguation), TIB (disambiguation), PIB (disambiguation), Zib (disambiguation) and RIB (disambiguation).

Units of the byte are defined in two ways: using powers of 10 and using powers of 2. The way using powers of 10 is recommended by a group that makes rules for these things. In this way, 1 kilobyte equals 1,000 bytes. The way using powers of 2 was made to fix confusion, and in this way, 1 kibibyte equals 1,024 bytes.

The way using powers of 10 is used for things like computer networks, hard drives, and flash memory. Some computer systems like Android, macOS, and Ubuntu use this way.

The way using powers of 2 was created to solve confusion. This way, 1 kibibyte equals 1,024 bytes. This way is used by some computer systems and software, but it is not used very often.

There have been some problems about which way to use, but rules have been made to help fix this.

UnitApproximate equivalent
bita Boolean variable indicating true (1) or false (0)
bytea basic Latin character.
kilobytetext of "Jabberwocky"
a typical favicon
megabytetext of Harry Potter and the Goblet of Fire
gigabyteabout 20 minutes of video on a 4.7 GB DVD
1½ standard CDs
terabytethe largest consumer hard drive in 2007
20 standard Blu-rays or 213 DVDs
petabyte2000 years of MP3-encoded music
exabyteglobal monthly Internet traffic in 2004
zettabyteglobal yearly Internet traffic in 2016 (known as the Zettabyte Era)

Common uses

Many programming languages use a byte to store information. Popular languages like Java, C#, F#, VB.NET, Rust, D, Go, Swift, JavaScript, Python, and Ruby use bytes that have eight bits. These can hold up to 256 different values.

In languages like C and C++, a byte is a small piece of memory that can hold characters. These languages say a byte can hold at least 256 values and be made of at least eight bits. Some versions of C and C++ might use more than eight bits for a byte, but almost all modern programs expect a byte to be eight bits. Today, bytes that aren’t eight bits are only used in special cases, like in certain types of processors.

When sending data from one place to another, a byte is a group of eight bits put together. Depending on how the data is sent, extra bits might be added for checking, but the main data part is still the eight-bit byte.

Related articles

This article is a child-friendly adaptation of the Wikipedia article on Byte, available under CC BY-SA 4.0.