Conversion from 20 Bits to Bytes

=

Invert

Formula to convert Bits (bit) to Bytes (B)

More information

Bits to Bytes conversion table

Bits (bit)Bytes (B)
1 Bit0.125 B
2 Bits0.25 B
3 Bits0.375 B
4 Bits0.5 B
5 Bits0.625 B
10 Bits1.25 B
20 Bits2.5 B
25 Bits3.125 B
50 Bits6.25 B
100 Bits12.5 B

Data reference points

ReferenceBits (bit)Bytes (B)
A plain text message (160 characters)1280 bit160 B
A three-minute MP324000000 bit3000000 B
A smartphone photo32000000 bit4000000 B
A high-definition film3.2 × 1010 bit4 × 109 B
A dual-layer Blu-ray disc4 × 1011 bit5 × 1010 B

Information about the Bit (bit)

The bit is the fundamental unit of information. Its symbol is bit, and its name is a contraction of binary digit, coined by the statistician John Tukey and put into print by Claude Shannon in his 1948 paper A Mathematical Theory of Communication, the work that founded information theory.

A bit is the amount of information carried by a single choice between two equally likely possibilities. A coin landing heads or tails, a switch open or closed, a voltage high or low: each of those settles one bit. That definition is what makes the bit a unit rather than a mere convention of notation. It measures how much uncertainty an answer removes, and it does so in a way that is independent of what the question was about.

Shannon's insight was that this could be counted. A message drawn from an alphabet of thirty-two equally likely symbols carries five bits per symbol, because thirty-two is two to the fifth. If the symbols are not equally likely — as letters in English are not — the average drops, and that gap between the naive count and the true average is exactly what compression exploits. A well-compressed file is one from which the redundant bits have been removed.

In hardware the bit is a physical state: a charge trapped on a floating gate in flash memory, the direction of magnetisation of a domain on a hard disc platter, a pit or land on an optical disc, a pulse of light present or absent in a fibre. All of these encode the same abstract quantity, which is why data can move between them without loss.

Bits are almost never counted singly in storage. They are grouped into octets of eight, and storage capacity is quoted in octets or their multiples. Transmission is different: network and interface speeds are quoted in bits per second, so a connection described as 100 megabits per second delivers about 12.5 megaoctets per second. Confusing the two is the commonest arithmetic error in the whole field.

Where single bits do get counted is in specifications of precision and range. A colour channel with 8 bits holds 256 levels; one with 10 bits holds 1,024. Audio at 16 bits per sample has about 96 decibels of dynamic range, and at 24 bits about 144. A 64-bit address can name about 18 quintillion locations. In every case, each added bit doubles what can be distinguished.

One bit equals 0.125 octets, 0.001 kilobits, or about 0.0009766 kibibits.


Information about the Byte (B)

The byte is the fundamental addressable unit of digital information in modern computing, equal to exactly eight bits, or one octet. Its symbol is B. Nearly every file size, memory rating and storage capacity is counted in bytes or their decimal and binary multiples.

Werner Buchholz coined the word in 1956 during the design of the IBM 7030 Stretch computer, deliberately spelling it with a y so a typesetting slip could not turn it into bit. Early machines used bytes of five, six, seven or nine bits; the commercial dominance of the IBM System/360 in 1964 and eight-bit microprocessors in the 1970s cemented eight bits as the norm, later codified in ISO/IEC 80000-13.

Eight bits yield 256 distinct patterns, running from 0 to 255 in unsigned arithmetic. That power of two splits cleanly into two four-bit nibbles, each written as one hexadecimal digit from 0 to F, so any byte fits in two characters from 00 to FF. That convenience explains why colour channels run from 0 to 255 and why memory dumps appear in pairs of hexadecimal digits.

Text encoding grew up around the byte. Original ASCII needed seven bits for English letters, digits and control codes, leaving the eighth bit spare for parity or national extensions. UTF-8, the web's dominant encoding, still stores text as byte sequences: one byte for basic Latin, two for accented European letters, Greek, Cyrillic and Arabic, three for Chinese, Japanese and Korean, and four for emoji.

Inside a processor, bytes assemble into larger types: a standard integer takes four bytes, a double-precision floating-point number eight, an IPv4 address four and an IPv6 address sixteen. Because early width variations lingered in telecoms, French usage and IETF internet standards still prefer octet to guarantee eight bits.

Capitalisation matters sharply. Uppercase B denotes a byte, whereas lowercase b denotes a bit, one eighth as large. Mixing them creates an eightfold error, especially when comparing file sizes in bytes against network speeds in bits per second.

One byte equals 8 bits, 1 octet, 0.008 kilobits, or 0.001 kilobytes.

Try our other unit converters

LengthMassTemperatureEnergyVolumeSpeedTimeDataPressureFrequencyData-transfer rateVolumetric flow rateAngleAreaPowerTorqueForceFuel economyDensityElectric chargeTypographyIlluminanceLuminanceAccelerationAngular velocityRadioactivityRadiation doseShoe & clothing sizes