A nibble uses four digits in binarypositional notation (base 2) to encode one of sixteen () possible values, representing the same amount of information stored by two digits in the quaternary numeral system (base 4) or just a single hexadecimal ("hex")[12] digit (base 16). That functional equivalence allows nibbles to typically be represented by a single hex digit, and likewise, byte values by a pair of hex digits.[12]
The term nibble originates from its representing half a byte, with byte a homophone of the English word bite.[2] David B. Benson may have coined its use to describe four-bit values as a joke while working as a professor at Washington State University in 1958.[15]
In 1977, an early use of the spelling nybble for the term was recorded within the consumer-banking technology group at Citibank. It created a pre-ISO 8583 standard for transactional messages between ATMs and Citibank's data centers that used the basic data unit nabble.
In the early 1980s, the alternative spelling nybble reflected the spelling of byte, as noted in editorials of Kilobaud Microcomputing and Byte.
Historically, nybble was used in several cases for data units longer than four bits. On the Apple II, much of the disk drive control and group coded recording was implemented in software, and writing data to a disk was done by converting 256-byte pages into sets of 5-bit[16] (later, 6-bit) nibbles whereas loading disk data required the reverse.[17][18] Moreover, 1982 documentation for the Integrated Woz Machine refers consistently to an "8 bit nibble".[19] The term byte once had the same ambiguity and meant a set of bits but not necessarily 8, hence the distinction of bytes and octets or of nibbles and quartets (or quadbits). Today, the terms byte and nibble almost always refer to 8-bit and 4-bit collections, respectively, and are very rarely used to express any other sizes.
Part of a byte
Nibble is used to describe the amount of memory used to store a digit of a number stored in packed decimal format (BCD) within an IBM mainframe. This technique is used to make computations faster and debugging easier. An 8-bit byte is split in half, and each nibble is used to store one decimal digit. The last (rightmost) nibble of the variable is reserved for the sign. Thus, a variable that can store up to nine digits would be packed into 5 bytes. Ease of debugging resulted from the numbers' being readable in a hex dump where two hex numbers are used to represent the value of a byte, as , or . For example, a five-byte BCD value of 314159265C represents a decimal value of +314,159,265.
Packed nibbles can also describe binary numbers. When converting from bytes to nibbles,the two halves are often referred to as the low (right) and high (left) nibbles rather than the more formal labels of least- and most-significant bits.[20] For example, in the binary representation for the natural number 97, ,
the high nibble is () and the low nibble is (). That same number expressed in hexadecimal is simply , with each nibble now reduced to a single digit that nonetheless represents the same value ().
Value representation
A nibble-sized value can be represented in different numeric bases:
continued at right
Nibble (binary)
Decimal
Hex.
Octal
Quat.
0000
0
0
0
0
0001
1
1
1
1
0010
2
2
2
2
0011
3
3
3
3
0100
4
4
4
10
0101
5
5
5
11
0110
6
6
6
12
0111
7
7
7
13
Nibble (binary)
Decimal
Hex.
Octal
Quat.
1000
8
8
10
20
1001
9
9
11
21
1010
10
A
12
22
1011
11
B
13
23
1100
12
C
14
30
1101
13
D
15
31
1110
14
E
16
32
1111
15
F
17
33
See also
Binary number– Number expressed in the base-2 numeral system
Syllable– Platform-specific data size used for some historical digital hardware
↑Sander-Cederlof, Bob (May 1981). "Commented Listing of DOS 3.2.1, $B800-BCFF". Apple Assembly Line. 1 (8). Richardson, Texas: S-C Software. Archived from the original on 2024-12-13. Retrieved 2026-06-11. PRE.NYBBLE and POST.NYBBLE convert between memory format and disk format. […] PRE.NYBBLE converts the 256-byte buffer to 410 bytes of 5-bits each, then […] POST.NYBBLE converts the 410 5-bit values back to 256 8-bit bytes.
↑Carr, John Weber III and Spearman, Mary Dale, eds. (1959). "Introduction to the Use of Digital Computers, Programming and Artificial Intelligence". Notes from the Summer Conference held at the Computation Center of the University of North Carolina at Chapel Hill, 17–28 August, 1959. Frontier Research on Digital Computers. Vol.1. p.211. Each of these letters corresponds to one of the integers from zero to fifteen, therefore requiring 4 bits (one "tetrade") in binary representation.
↑Speiser, Ambrosius Paul (1965) [1961]. Digitale Rechenanlagen: Grundlagen / Schaltungstechnik / Arbeitsweise Betriebssicherheit[Digital computers: Fundamentals / Circuit technology / Operation and reliability] (in German) (2nded.). Berlin/Heidelberg: Springer-Verlag. pp.6–9, 164–165, 183, 208–212. doi:10.1007/978-3-642-92953-3. ISBN978-3-642-92954-0. LCCN6500014624. p.6: Es gibt 10 verschiedene Dezimalziffern. Mit 4 Dualstellen lassen sich 24 = 16 Kombinationen bilden, also miissen 4 Dualstellen geniigen, um eine Dezimale zu verkörpern. Eine solche Vierergruppe wird als Tetrade bezeichnet.[There are 10 different decimal digits. With 4 binary digits, 24 = 16 possible combinations can be formed; thus, 4 binary digits must suffice to represent a decimal digit. Such a group of four is called a tetrad.]{{cite book}}: More than one of |location= and |publication-place= specified (help)
↑Courbis, Paul and Lalande, Sébastien (2006-06-27) [1 December 1989]. "Chapitre V - L'accès au langage-machine: comment entrer un programme-machine ou, plus généralement, un objet quelconque (ASS / LASS)"[Chapter V - Accessing Machine Language: How to enter a machine program or, more generally, any object (ASS / LASS)](PDF). Voyage au centre de la HP28c/s[A Look Inside the HP28c/s] (in French) (2nded.). Paris: La Règle à Calcul. pp.63, 105. OCLC636072913. Archived from the original on 2016-08-06. Retrieved 2015-09-06. p.63: Comme un caractère de la chaîne LM représente un quartet et que l'on veut créer une chaîne comme résultat on va coder 2 quartets par 2 quartets (1 caractêre ASCll=2 quartets=1 octet).[Since each character in the LM string represents a quartet, and we want to create a string as the result, we will encode the quartets in pairs (1 ASCII character = 2 quartets = 1 byte).]
12Heller, Steve (1997-04-24). Introduction to C++ (1sted.). Morgan Kaufmann. pp.25–27. ISBN978-0-12-339099-8. LCCN96-054727. pp.25–26: As a rule, the term hexadecimal is abbreviated to hex. Since there are 16 possible combinations of 4 bits (2×2×2×2), hexadecimal notation allows four bits of a binary number to be represented by one hex digit. […] For this reason, binary is almost never used. Instead, we use hex as a shortcut to eliminate the necessity of reading, writing and remembering long strings of bits.
↑"Terms And Abbreviations"(PDF). MCS-4™ Assembly Language Programming Manual (Preliminaryed.). Santa Clara, California: Intel Corp. December 1973. pp.v, 2–6. Archived(PDF) from the original on 2020-03-01. Retrieved 2020-03-02. Character – A group of 4 contiguous bits of data. (N.B. This Intel 4004 manual uses the term character referring to 4-bit rather than 8-bit data entities. By 1974, Intel had already switched to use the more common term nibble for 4-bit entities in their documentation for the succeeding 4040 processor.)
↑Worth, Don D. and Lechner, Pieter M. (1982-05-01) [1981-06-01]. Beneath Apple DOS (4th printing, 1sted.). Reseda, California: Quality Software. p.14. ISBN978-0-912985-00-8. Retrieved 2017-03-21. This new method involved a "5 and 3" split of the data bits, versus the "4 and 4" mentioned earlier. Each byte written to the disk contains five valid bits rather than four. This requires 410 "disk" bytes to store a 256 byte sector.
↑Baccala, Brent, ed. (April 1997). "Binary arithmetic". Connected: An Internet Encyclopedia (3rded.). Archived from the original on 2019-02-13. Retrieved 2015-07-20. Memorize the decimal values for the high nibble (they're just the multiples of 16). The low nibble is trivial. Every number between 0 and 255 is the sum of one of the high nibble values and one of the low nibble values.
You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.