NFC card with an embedded round antenna coil showing HEX 12345678 converted to decimal 305419896

NFC UID Converter: Hex to Decimal & Decimal to Hex

Our NFC UID converter helps you compare a card’s hexadecimal and decimal numbers before you prepare an import list. Enter a full UID to see its bytes, decimal value and reversed-byte result, then check which display your reader or software expects.

Whether you’re matching a MIFARE UID to decimal or comparing a printed card number with a reader output, we’ll help you understand the difference. UID means unique identifier; hexadecimal, or HEX, uses the digits 0–9 and letters A–F.

Convert Your NFC UID

Format settings

Input format

Output format

UID length

Byte order

Entered order keeps the bytes as shown. Reversed order flips them: 12 34 56 78 → 78 56 34 12.

8 HEX characters; no spaces or 0x prefix.

Convert one UID

Convert a UID list

How to Convert a UID Between Hex and Decimal

1

Convert Hex to Decimal

Choose HEX input and select the UID length shown by your reader or card documentation. Enter the full value, such as 12345678 for a four-byte UID, and compare the two decimal results.

For a MIFARE UID hex-to-decimal conversion, use the complete identifier. Keep any leading zero bytes in your input.

2

Convert Decimal to Hex

Choose Decimal input and select the known UID length. Enter the full decimal number to restore its HEX display at that width.

Decimal does not retain leading zero bytes, so the converter needs the original length. For example, 305419896 becomes 12345678 at four bytes.

3

Match Your System’s Display

Compare the entered-order and reversed-byte results with one card your system already recognizes. Copy the matching display only after you confirm how your system interprets the UID.

If neither value matches, check whether the system uses a shortened identifier or a separate credential stored in the card.

Compare Card Numbers Before You Import a List

We want you to resolve a number-format question before it becomes a larger card-order or enrollment problem. Use one card to check the details that matter.

See the Byte Order Clearly

Compare the original byte pairs with their reversed order. You can see why the same input produces two different decimal values.

Keep the Full Identifier

Choose the correct UID length to keep leading zero bytes in the HEX result. A complete identifier gives you a clearer comparison than a shortened number.

Check One Card First

Match one reader output with the corresponding spreadsheet entry before you import a whole list. We can help you review the format details when the numbers differ.

Understand Your UID Converter Results

Our UID calculator shows the entered value and a reversed-byte interpretation separately. Each result has its own HEX and decimal display; your system’s settings determine which interpretation it uses.

HEX and Decimal

HEX and decimal use different number bases. For the same byte order, 12345678 in HEX represents 305419896 in decimal.

The letters in a HEX UID are part of its number display, not extra card data.

Entered Order and Reversed Bytes

Entered order keeps the byte pairs in the sequence shown in the HEX input or reconstructed from the decimal value. Reversed bytes puts the last pair first.

For 12 34 56 78, the reverse HEX byte order is 78 56 34 12. Reverse pairs, not individual characters.

Leading Zeros

A four-byte UID uses eight HEX characters. Optional ten-digit decimal formatting adds zeros at the beginning without changing the number.

For 305419896, the padded display is 0305419896. Keep that value as text if your import file requires ten digits.

Need Help Matching a UID List to Your Reader?

Share your reader model, the expected import format and one example UID with us. We’ll help you check the number display before you prepare the rest of your card list.

If you’re ordering cards from TagtixRFID, tell us whether you need a visible printed number, a UID spreadsheet or both. We’ll confirm the available preparation options for your card model.

Ask Us About UID Formats

Compare 4-Byte, 7-Byte and 10-Byte UID Displays

Choose the full UID length when you use our converter. The ISO/IEC 14443 UID sizes shown here use two HEX characters per byte; other RFID technologies may use different identifiers.

4 bytes · 8 HEX characters

Ten-digit decimal padding is an optional display format.

7 bytes · 14 HEX characters

Convert all seven bytes; do not silently reduce the UID to four bytes.

10 bytes · 20 HEX characters

Keep all ten bytes and confirm the system can accept the full value.

A ten-byte UID is not a ten-digit decimal card number. Byte length and the number of displayed decimal digits describe different things.

MIFARE Classic 1K UID length can vary by card version. Confirm whether you have a four-byte or seven-byte UID instead of choosing the length from the card name alone.

NXP’s UID handling guidance

Why Can the Same Card Show Two Decimal Numbers?

Two systems can show different card numbers when they interpret the same UID bytes in opposite orders. A changed decimal display does not, by itself, show that the card’s identifier changed.

This illustrative four-byte example shows the difference. Neither column is a universal NFC UID format.

Why Can the Same Card Show Two Decimal Numbers?
DisplayEntered Byte OrderReversed Byte Order
Bytes12 34 56 7878 56 34 12
HEX1234567878563412
Decimal3054198962018915346
Optional 10-Digit Decimal03054198962018915346

Big-endian gives the first byte the most significant position when forming an integer. Little-endian gives the first byte the least significant position. The converter’s plain labels let you compare both interpretations without assuming your reader’s setting.

NXP does not prescribe one conversion from UID bytes to an integer. We recommend checking your reader or software documentation before you choose a decimal display.

NXP’s explanation of UID interpretation

Keep UID Numbers Intact in Your Spreadsheet

Keep UID values as text when you prepare a spreadsheet or CSV import. Text formatting helps preserve required leading zeros and avoids treating a long identifier as a number for calculations.

We recommend checking the original file, the imported preview and one physical card before you process the full list.

  1. Set the destination column to Text before you paste or import UID values.
  2. Keep the full HEX width and any decimal padding required by your system.
  3. Compare the saved and imported values with the original list.
  4. Test one known card with the intended reader and software.

If a spreadsheet has already removed zeros or rounded a long value, changing its display format cannot recover the missing information. Return to the original UID source.

A card’s printed number may follow a different rule from its full UID. Match the printed number, spreadsheet entry and reader output before assuming they are interchangeable.

NFC and MIFARE UID Conversion Questions

Related Card Format Guides

Use these guides when you need more context about card numbers and access-control formats.

How Do RFID Access Cards Work? Choose Right One for Your Access Control System - TagtixRFID

Kuidas RFID-juurdepääsukaardid töötavad? Vali õige oma juurdepääsukontrollisüsteemi jaoks

Avasta RFID-juurdepääsukontrollitehnoloogia eelised parema turvalisuse ja mugavuse saavutamiseks. Uuri RFID-kaartide põhifunktsioone ja kuidas see muudab juurdepääsu kontrollimise viisi.

Illustration of an access card and 26-bit and 37-bit Wiegand data

Wiegand Calculator for 26-Bit and 37-Bit HID Formats

Use this Wiegand calculator to build or decode H10301, H10302 and H10304 card data. Enter a facility code and card number, or paste a complete binary or hexadecimal value, to see the bit layout and...