Guide
What Do A–F Mean in Hexadecimal?
Six letters standing in for six numbers — why they exist and what each is worth.
The direct answer
| Letter | Value | In binary |
|---|---|---|
| A | 10 | 1010 |
| B | 11 | 1011 |
| C | 12 | 1100 |
| D | 13 | 1101 |
| E | 14 | 1110 |
| F | 15 | 1111 |
They are digits, not abbreviations. A means the quantity ten in the same way
7 means the quantity seven — there is nothing more to decode.
Why letters were needed at all
A base-16 system needs sixteen distinct single symbols, one per value from zero to fifteen. The decimal system supplies ten. Six more had to come from somewhere.
Using 10 for ten would be fatal, because in hex 10 already means sixteen
— one full group of the base. Every value below the base needs its own single character, so
new symbols were required. The first six letters were already ordered, already on every keyboard and
visually distinct from digits, which made them the obvious choice.
Early computing used other schemes, including u v w x y z and even a set of invented glyphs. A to F won because it needed no new typefaces and no explanation to anyone who already knew the alphabet.
Memorising them
Two anchors and a count cover all six.
- A is 10. The letters begin exactly where decimal digits stop.
- F is 15. The last letter is the last value before rollover — and in binary it is all four bits set.
- Count between them. B, C, D, E fill in 11, 12, 13, 14 in alphabetical order.
F is worth learning first. It appears constantly as a full nibble, in masks like
0F and FF, and knowing it is 15 makes most byte values readable.
Where the letters show up
| You see | It means |
|---|---|
| FF | Every bit in a byte set — 255 |
| 0F | The low four bits only — 15 |
| F0 | The high four bits only — 240 |
| #FFFFFF | White — all three color channels at maximum |
| #FF0000 | Pure red — one channel full, two empty |
| 7F | 127 — the largest signed byte |
| DEADBEEF | A real number, used as a memory marker |
The mistakes the letters cause
- Reading A as "the letter A". It is the digit ten. In
A0it contributes 10 × 16, not a letter. - Assuming case matters.
ffandFFare the same value. Case is a formatting convention only. - Using G or beyond. Hex stops at F. A
Gin what looks like hex means the value is not hex, or a character has been corrupted. - Confusing 0 and O. Zero is a digit; the letter O is not a hex character at all. In a poor typeface this causes real errors, which is why hex is nearly always set in a monospace font.
- Confusing B and 8. Same problem, same solution.
Words you can spell in hex
Six letters is enough for a small vocabulary, and programmers have used these as recognisable markers in memory for decades. Each is a perfectly ordinary number.
| Word | Decimal | Traditionally means |
|---|---|---|
| DEAD | 57,005 | Freed or invalid memory |
| BEEF | 48,879 | Filler, often paired with DEAD |
| CAFE | 51,966 | A marker, often a file signature |
| FACE | 64,206 | A marker |
| C0DE | 49,374 | Code section marker, using 0 for O |
| DEADBEEF | 3,735,928,559 | Uninitialised memory — the classic |
Spotting DEADBEEF in a debugger is genuinely useful information: it almost always
means you are reading memory that was never initialised.
See them in action
The hex converter shows each digit's four-bit pattern as you type, so you can
watch A become 1010 and F become 1111
directly.
Frequently asked questions
What does A mean in hexadecimal?
The number ten. It is a digit, not an abbreviation.
What does F mean in hexadecimal?
Fifteen, the largest single hex digit. In binary it is 1111, all four bits set.
Why does hexadecimal stop at F?
Base 16 needs exactly sixteen symbols, 0 to F. Sixteen itself rolls over to 10, so no seventeenth symbol is needed.
Does case matter in hexadecimal?
No. FF and ff are the same value. Upper case is conventional in hardware documentation, lower case in CSS and hashes.
Why is there no G in hexadecimal?
Because sixteen symbols is all base 16 requires. A G means the value is not valid hex.
What does DEADBEEF mean?
It is the number 3,735,928,559, used as a recognisable marker for uninitialised memory. The letters A to F make a few English words spellable as valid hex.