Safekipedia

Byte

Adapted from Wikipedia · Discoverer experience

The byte is a unit of digital information that most commonly consists of eight bits. It is the smallest piece of memory that a computer can address and is used to store characters and other small pieces of data. Because it is tied to how computers work, the byte plays a big role in how information is handled and stored.

Historically, the size of a byte changed depending on the hardware and could be anywhere from 1 to 48 bits. Early computers often used six-bit or nine-bit bytes, and these systems had memory words made up of multiple bytes. Over time, the eight-bit byte became the standard, making it easier to work with values from 0 to 255.

Today, the eight-bit byte is the worldwide standard, supported by international rules and used in almost all modern computers. This standard helps computers and programs talk to each other clearly and efficiently. The symbol for a byte is the letter B, while an octet is used to mean exactly eight bits, avoiding any confusion.

Etymology and history

The word byte was first used by Werner Buchholz in 1956 when he was working on the IBM Stretch computer. He chose the spelling 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 important standards were developed: 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, as stated in special technology rules and guides.

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. 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 over the wrong use of the powers of 10 way. 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 and disagreements 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 something called a byte to store information. Popular languages like Java, C#, F#, VB.NET, Rust, D, Go, Swift, JavaScript, Python, and Ruby all use bytes that have exactly eight bits, which can hold up to 256 different values.

In languages like C and C++, a byte is described as a small piece of memory that can hold characters. These languages require that 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.