Nepedia
Back to Discover
Independent Reader
🔢

Hexadecimal

math Maturity 7-9 Next article →

Most people count using ten numbers. This is called the decimal system. But computers often use a different way. They use a system with sixteen numbers. This is called hexadecimal, or "hex" for short.

Hexadecimal-counting
Hexadecimal-counting

To show sixteen values, hex uses digits 0 through 9. It also uses letters A through F. These letters stand for values like ten or fifteen. For example, the letter A means ten. The letter F means fifteen.

Hexadecimal multiplication table
Hexadecimal multiplication table

Computers use hex to make tasks easier. They often work with binary code. Binary is a system of bits. A single hex digit can represent four bits. This is called a nibble. Two hex digits make an 8-bit byte.

Hewlett-Packard Model HP-16C Programmable RPN Calculator, HP's First and Only Calculator esp. for Programmers, built 1982-1989 (edited to rectangular, V2)
Hewlett-Packard Model HP-16C Programmable RPN Calculator, HP's First and Only Calculator esp. for Programmers, built 1982-1989 (edited to rectangular, V2)

Programmers use different marks to show hex. Some use "0x" before the number. Others use a small number 16 at the bottom. Hex can even describe colors on a screen. It uses pairs of digits for red, green, and blue. This helps computers show many colors clearly.

159 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (5)
File:Bruce Martin hexadecimal notation proposal.png
Bruce Martin hexadecimal notation proposal.png
File:Base-16 digits.svg
Base-16 digits.svg
File:Hexadecimal-counting.jpg
Hexadecimal-counting.jpg
File:Hewlett-Packard Model HP-16C Programmable RPN Calculator, HP's First and Only Calculator esp. for Programmers, built 1982-1989 (edited to rectangular, V2).jpg
Hewlett-Packard Model HP-16C Programmable...
File:Hexadecimal multiplication table.svg
Hexadecimal multiplication table.svg
More to explore

🔬 Go deeper

More advanced topics to explore

🪜 Step back

Simpler topics to build understanding

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.