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
- Choose the direction: facility code and card number to hex, or hex to facility code and card number.
- To encode, enter the facility code (0–255) and card number (0–65,535).
- 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.