Card (ICC)Format: nLength: 2
5F28

Issuer Country Code

Tag ID
5F28
Format
n
Length (bytes)
2
Source
Card (ICC)

What it is

Issuer Country Code identifies the country of the issuer as a 3-digit ISO 3166-1 numeric code, encoded in 2 BCD bytes. Terminals compare it against the terminal country code (9F1A) to decide whether a transaction is domestic or international, which affects Application Usage Control (9F07) checks.

Where it appears

Read from the card record files; used in usage-control and risk checks.

How tag 5F28 is encoded

EMV data objects are BER-TLV: tag, then length, then value. 5F28 is a 2-byte, application class, primitive tag (tag number 40), so its value is plain data rather than nested TLV objects.

5F01011111Bits 8–7 = 01: application class. Bit 6 = 0: primitive. Bits 5–1 all set: the tag number continues in the next byte.
2800101000Bit 8 = 0: last tag byte. Bits 7–1 = 40.

Length

The value is always 2 bytes, so the length field is 02. A complete 5F28 object starts 5F 28 02 and is 5 bytes long in all.

Value format n

Format n is numeric: BCD, two digits per byte, right-aligned and padded with leading zeros. 2 bytes hold 4 digits.

Who supplies it

The card supplies this value. The terminal reads it from the card’s responses during application selection, GET PROCESSING OPTIONS, READ RECORD or GENERATE AC, depending on where the issuer personalised it.

Specification reference

Defined in: EMV 4.x Book 3 (Application Specification), Annex A — Data Element Dictionary

Example values

0840United States (840)
0156China (156)