Hex to 7-Segment Display Converter

The Hex to 7-Segment Display Converter looks up which segments (a through g) need to light up to show a given Hex Digit (0-F) on a standard seven-segment display. Enter your digit, click Convert, and see the lit segments listed in Lit Segments. The fastest way to get a rough Benjamin Moore paint name for a hex value is the hex to benjamin moore converter.

How the Hex to 7-Segment Display Converter Reveals Segment Activation

Enter a single hex digit—0 through F, uppercase or lowercase—into the Hex Digit (0-F) field, and the Lit Segments output lists exactly which of the seven segments (labeled a through g) need to turn on to render that character on a standard 7-segment display. Understanding how this hex-to-segment mapping works lets you cross-check firmware output, verify a lookup table by hand, or simply learn the standard encoding used across digital clocks, calculators, and embedded readouts. When debugging low-level code, the hex to signed integer converter shows the true signed value behind a hex byte or word.

Understanding the Seven-Segment Display Layout

A 7-segment display is a single character position built from seven individual segments, typically arranged in a figure-eight pattern. Segment a is the top horizontal bar, segments f and b are the upper-left and upper-right verticals, segment g is the middle bar, segments e and c are the lower-left and lower-right verticals, and segment d is the bottom horizontal bar. Turning different combinations of these seven segments on and off produces every decimal numeral (0–9) and, in hex contexts, the six letter digits (A–F) of the base-16 number system as well.

Each hex digit maps to a fixed set of lit segments. For example, the digit 8 lights every segment (a through g), since an 8 uses the whole figure-eight shape, while the digit 1 lights only segments b and c—the two right-hand verticals—since that's all it takes to draw a recognizable "1". This hex to 7-segment converter looks up the correct segment combination for whichever digit you enter and lists it immediately in the Lit Segments output.

Worked Examples: Hex Digit to Lit Segments

Three examples show how a hex digit maps to its lit segments:

  • Hex digit 0: Segments on: a b c d e f. All six outer segments light up; the middle bar (g) stays off—this is the classic "zero" shape, and every outer edge of the display is lit except the crossbar.
  • Hex digit 1: Segments on: b c. Only the two right-hand verticals light up—the simplest pattern of any hex digit, and a good visual check that a display's right-side segments are wired correctly.
  • Hex digit A: Segments on: a b c e f g. Every segment except d (the bottom bar) lights up, forming the pointed-top shape of a capital A. This is the first of the six hex "letter" digits and shows how the tool extends past 0–9 into the full hexadecimal range.
Infographic showing which segments light up for hex digit A on a seven-segment display: segments a, b, c, e, f, and g light up
Hex to 7-Segment Display Converter: A = segments a, b, c, e, f, g

Full Hex to 7-Segment Reference Table (All 16 Hex Digits)

The table below lists the lit-segment pattern this hex to 7-segment display converter returns for every hex digit, 0 through F. Use it to cross-check the converter's output, or as a quick lookup while you're writing firmware or checking a schematic.

Hex DigitDecimal ValueSegments OnSegments OffCharacter Shown
00a b c d e fg0
11b ca d e f g1
22a b d e gc f2
33a b c d ge f3
44b c f ga d e4
55a c d f gb e5
66a c d e f gb6
77a b cd e f g7
88a b c d e f g8
99a b c d f ge9
A10a b c e f gdA
B (b)11c d e f ga bb
C12a d e fb c gC
D (d)13b c d e ga fd
E14a d e f gb cE
F15a e f gb c dF

Note: The letter digits B and D are conventionally shown in lowercase (b, d) on a real 7-segment display, since an uppercase B is indistinguishable from 8 and an uppercase D is indistinguishable from 0 on a seven-segment layout. The hex to 7-segment display converter accepts both uppercase and lowercase hex input (af) and returns the same lit-segment pattern either way—the case of what you type doesn't change the result.

Common Cathode vs. Common Anode Displays

Physical 7-segment displays come in two wiring styles: common cathode, where every segment's cathode shares a ground pin and a segment lights when its control line is driven high, and common anode, where every segment's anode shares a positive supply pin and a segment lights when its control line is driven low instead. The lit-segment logic described above—which segments are "on" for a given hex digit—is the same regardless of wiring style; common anode and common cathode displays just invert which voltage level counts as "on" at the hardware level. When you're wiring a physical display, check your specific component's datasheet to confirm which type you have before connecting a segment driver.

Real-World Uses of Hex to 7-Segment Encoding

Why Convert Hex to 7-Segment Patterns?

Understanding and checking the hex-to-segment mapping is useful across a range of digital electronics and embedded programming contexts:

  • Embedded systems and firmware: Confirm the correct lit-segment pattern before writing driver code for a microcontroller project that outputs to a 7-segment display.
  • Digital clocks and numeric readouts: Check that each digit in a multi-digit display renders the character you expect, digit by digit.
  • Calculator and counter projects: Verify segment patterns for hobbyist electronics builds using 7-segment display modules.
  • Educational use in digital electronics: Learn how a single hex digit maps to on/off states across seven individual segments—a foundational concept in digital display design and a common topic in intro electronics coursework.
  • Debugging existing hardware: If a display shows an unexpected character, compare the lit segments you're seeing against this reference table to identify which hex value is actually being sent.

Hex Digits and the Seven-Segment Alphabet

Because a 7-segment display can only cleanly render a subset of letters, hex digits A through F are the most common "letter" characters shown on this type of display outside of the ten decimal numerals. That's part of why hexadecimal is a natural fit for 7-segment output: every digit in a hex number—0 through F—has a legible, unambiguous segment pattern, unlike most other letters of the alphabet.

For deeper work with your hex values, several other tools on this site extend what you can do with the output of this converter:

To see the base-10 value behind a hex digit, use the Hex to Decimal Converter for a full numeric breakdown of hex values into decimal.

To see the raw bit pattern behind any hex digit, run it through the Hex to Binary Converter for a bit-by-bit view.

To go the other direction—from a binary bit pattern back to hex—the Binary to Hex Converter lets you start from bits and arrive at the hex value.

To mask or toggle individual bits, useful when packing multiple hex digits' worth of segment data into a single byte for firmware, the Hex Bitwise Calculator gives you full AND/OR/XOR control over any hex value.