Skip to content
Press Equals

HID Card Calculator (26-bit Wiegand)

26-bit H10301: even parity, 8-bit facility code, 16-bit card number, odd parity. Facility 123, card 45678 is 2F764DD.

Convert a facility code and card number to the 26-bit Wiegand (HID H10301) hex and binary value, with parity bits, or decode a hex value back.

Result

For the standard 26-bit H10301 format. Other formats (35-bit Corporate 1000, 37-bit H10304) lay out the bits differently.

Hex (26-bit value)

2F764DD

Facility code
123
Card number
45,678
Written as
123:45678
Binary (parity, facility, card, parity)
1 01111011 1011001001101110 1
26-bit value in decimal
49,767,645
Parity
Even 1, odd 1

What this calculator does

Proximity access cards in the standard 26-bit Wiegand format (HID H10301) carry a facility code and a card number. Readers and access-control logs often show the raw value in hex instead. This calculator encodes a facility code and card number into the 26-bit hex, binary and decimal value with its parity bits, or decodes a hex value back and checks the parity.

How to use it

  1. Choose the direction: facility code and card number to hex, or hex to facility code and card number.
  2. To encode, enter the facility code (0–255) and card number (0–65,535).
  3. To decode, enter the hex value from the reader or log, up to 7 digits.

How the 26 bits are laid out

  • Bit 1: even parity over bits 2–13
  • Bits 2–9: the facility code, 8 bits
  • Bits 10–25: the card number, 16 bits
  • Bit 26: odd parity over bits 14–25

The even-parity bit makes the first 13 bits hold an even number of 1s; the odd-parity bit makes the last 13 hold an odd number.

Examples

Example 1: Facility code 123, card 45678. 123 is 01111011 and 45678 is 1011001001101110. The first 12 data bits hold nine 1s, so the even-parity bit is 1; the last 12 hold six, so the odd-parity bit is 1. The card reads 1 01111011 1011001001101110 1, which is 2F764DD in hex.

Example 2: Facility code 1, card 1. The 26 bits are 1 00000001 0000000000000001 0, so the hex value is 2020002 and the decimal value is 33,685,506.

Example 3: Decoding a value from a log. 2F764DD splits back into facility code 123 and card number 45,678, and Both parity bits check out.

Tips

  • Only 26-bit H10301 cards use this layout. 35-bit Corporate 1000, 37-bit H10304 and vendor formats place the bits differently.
  • If the parity doesn't check out, a digit may be wrong or the card isn't the standard 26-bit format.
  • For other base conversions, use the number base converter or the hex calculator.

Common questions

How is a 26-bit HID card number made?

The 26 bits are an even-parity bit, the 8-bit facility code (0–255), the 16-bit card number (0–65,535) and an odd-parity bit. Facility code 1, card 1 is 2020002 in hex.

How do I find the facility code from a hex value?

Choose hex to facility code and enter the value. 2F764DD decodes to facility code 123 and card number 45,678, and both parity bits check out.

How we check this calculator

  • Tested against 4 reference answers worked from published sources or by hand,such as “edge: all-zero data needs only the odd parity bit”.
  • All 3 worked examples in the article above are run through this calculator, so the two can't disagree.
  • Every input is tried at its smallest and largest values and with random numbers, and must never crash or show a broken number.
  • These checks run automatically before any change goes live.

Spotted a wrong number? Tell us and we'll fix it. See how the calculators are tested.

Updated