EMV TAG REFERENCE

EMV tag 5A: application primary account number (pan).

What tag 5A contains, its format and length, an example value and where it goes wrong in testing.

3 min read · By Kevin Medina · Updated November 19, 2026
The short version

Tag 5A is the Application Primary Account Number, the card number held in the chip. It is stored as binary-coded digits, two per byte, and padded with F when the number has an odd length.

What is EMV tag 5A?

Tag 5A is the Application Primary Account Number, the card number held in the chip. It is stored as binary-coded digits, two per byte, and padded with F when the number has an odd length.

The PAN is sensitive cardholder data. Do not paste real card numbers into any online tool, and mask it in logs. Payment standards limit how a PAN may be stored and displayed. Use test cards.

Quick facts

PropertyValue
Tag5A
NameApplication Primary Account Number (PAN)
AbbreviationPAN
FormatCompressed numeric
LengthUp to 10 bytes
SourceCard (ICC)

Example

5A 4111111111111111

This is a well-known test number. In tag 5A it appears as 4111111111111111 with no padding because it has 16 digits.

Common issues in testing and certification

Related tags

Paste a full EMV data string into the TLV parser to see every tag decoded together, or search all tags in the EMV tag lookup. See the full tag list.

If your payment app has to pass EMV Level 3, see our certification services and Foundry.

Frequently asked questions

What is EMV tag 5A?
Tag 5A is the Application Primary Account Number, the card number stored in the chip.
How is the PAN encoded in tag 5A?
As compressed numeric, two digits per byte, padded with F for an odd-length number.
Can I check a PAN with the Luhn algorithm?
Yes. Our Luhn validator checks the format, and you should use test numbers only.

Need help with EMV certification?

We have taken 133 payment applications through EMV Level 3 across many regions. Tell us about your project.

Talk to us Book a meeting with a founder