← All code tables / Numbers & science
Seven-Segment Display Chart
Standard seven-segment display patterns for 0–9 and hexadecimal A–F with active segments and bitmasks (a=bit 0).
| Character | Segments a–g | Hex bitmask |
|---|---|---|
| 0 | abcdef– | 0x3F |
| 1 | –bc–––– | 0x06 |
| 2 | ab–de–g | 0x5B |
| 3 | abcd––g | 0x4F |
| 4 | –bc––fg | 0x66 |
| 5 | a–cd–fg | 0x6D |
| 6 | a–cdefg | 0x7D |
| 7 | abc–––– | 0x07 |
| 8 | abcdefg | 0x7F |
| 9 | abcd–fg | 0x6F |
| A | abc–efg | 0x77 |
| b | ––cdefg | 0x7C |
| C | a––def– | 0x39 |
| d | –bcde–g | 0x5E |
| E | a––defg | 0x79 |
| F | a–––efg | 0x71 |
Bit layout: a=bit 0, b=bit 1, … g=bit 6. Different hardware may use another wiring order or inverted polarity. Lowercase b and d are used to distinguish them from 8 and 0.
Geocaching tip: A broken or partly illuminated display can hide several possible digits; compare active segments before guessing.