2ClickKit

EMV TLV Tag Dictionary & BER-TLV Stream Parser

Files Never Leave Your Device

Interactive reference for 150+ EMV Book 1-4 smart card tags, AIP/TVR bitmask breakdowns, and instantaneous client-side BER-TLV hex decoding.

EMV TLV Tag Dictionary & Hex Stream Parser

Search 150+ EMV Book 1-4 smart card tags, decode bitmasks (TVR/AIP), and parse raw BER-TLV payloads.

Popular Tags:
TagNameLengthFormatSourceAction
4FApplication Identifier (AID)5-16 bytesb (Binary)EMV Book 1 / ISO 7816-4
50Application Label1-16 bytesansEMV Book 1
52Command to PerformVariablebEMV Book 1
57Track 2 Equivalent DataUp to 19 bytesb (Compressed numeric)EMV Book 3
5AApplication Primary Account Number (PAN)Up to 10 bytescn (Compressed numeric)EMV Book 3
5F20Cardholder Name2-26 bytesansEMV Book 4
5F24Application Expiration Date3 bytesn 6 (YYMMDD)EMV Book 3
5F25Application Effective Date3 bytesn 6 (YYMMDD)EMV Book 3
5F28Issuer Country Code2 bytesn 3EMV Book 3 / ISO 3166-1
5F2ATransaction Currency Code2 bytesn 3EMV Book 4 / ISO 4217
5F2DLanguage Preference2-8 bytesan 2 (ISO 639-1)EMV Book 4
5F30Service Code2 bytesn 3EMV Book 3 / ISO 7813
5F34Application PAN Sequence Number (PSN)1 byten 2EMV Book 3
5F36Transaction Currency Exponent1 byten 1EMV Book 4 / ISO 4217
6FFCI Template (File Control Information)VariablebEMV Book 1 / ISO 7816-4
70EMV Proprietary Template / Read Record ResponseVariablebEMV Book 1
77Response Message Template Format 2VariablebEMV Book 3
80Response Message Template Format 1VariablebEMV Book 3
82Application Interchange Profile (AIP)Bitmask2 bytesb 16EMV Book 3
84Dedicated File (DF) Name5-16 bytesbEMV Book 1
87Application Priority Indicator1 bytebEMV Book 1
8AAuthorization Response Code (ARC)2 bytesan 2EMV Book 3
8CCard Risk Management Data Object List 1 (CDOL1)VariablebEMV Book 3
8DCard Risk Management Data Object List 2 (CDOL2)VariablebEMV Book 3
8ECardholder Verification Method (CVM) ListVariable (min 10 bytes)bEMV Book 3
8FCertification Authority Public Key Index1 bytebEMV Book 2
90Issuer Public Key CertificateVariablebEMV Book 2
92Issuer Public Key RemainderVariablebEMV Book 2
94Application File Locator (AFL)Variable (multiples of 4 bytes)varEMV Book 3
95Terminal Verification Results (TVR)Bitmask5 bytesb 40EMV Book 3
97Transaction Certificate Data Object List (TDOL)VariablebEMV Book 3
9ATransaction Date3 bytesn 6 (YYMMDD)EMV Book 4
9BTransaction Status Information (TSI)2 bytesb 16EMV Book 3
9CTransaction Type1 byten 2EMV Book 4 / ISO 8583
9F02Amount, Authorized (Numeric)6 bytesn 12EMV Book 4
9F03Amount, Other (Numeric)6 bytesn 12EMV Book 4
9F06Application Identifier (AID) - Terminal5-16 bytesbEMV Book 4
9F07Application Usage Control (AUC)2 bytesb 16EMV Book 3
9F08Application Version Number - Card2 bytesb 16EMV Book 3
9F09Application Version Number - Terminal2 bytesb 16EMV Book 4
9F10Issuer Application Data (IAD)Up to 32 bytesbEMV Book 3
9F1ATerminal Country Code2 bytesn 3EMV Book 4 / ISO 3166-1
9F1EInterface Device (IFD) Serial Number8 bytesan 8EMV Book 4
9F26Application Cryptogram (AC)8 bytesb 64EMV Book 3
9F27Cryptogram Information Data (CID)1 byteb 8EMV Book 3
9F33Terminal Capabilities3 bytesb 24EMV Book 4
9F34Cardholder Verification Method (CVM) Results3 bytesb 24EMV Book 4
9F35Terminal Type1 byten 2EMV Book 4
9F36Application Transaction Counter (ATC)2 bytesb 16EMV Book 3
9F37Unpredictable Number (UN)4 bytesb 32EMV Book 4
9F39Point of Service (POS) Entry Mode1 byten 2EMV Book 4 / ISO 8583
9F40Additional Terminal Capabilities5 bytesb 40EMV Book 4
A5FCI Proprietary TemplateVariablebEMV Book 1
BF0CFCI Issuer Discretionary DataVariablebEMV Book 1
DF8117Card Data Input Capability (Kernel 2)1 bytebMastercard Contactless Kernel 2
DF8129Outcome Parameter Set8 bytesbEMV Contactless Book C-2

Technical Architecture of the EMV Integrated Circuit Card Standard

In global retail payments, the transition from magnetic stripe cards to chip cards was standardized by EMVCo—a consortium founded by Europay, Mastercard, and Visa, later joined by American Express, JCB, Discover, and UnionPay. The core architecture is codified across four foundational technical manuals known throughout the FinTech industry as the EMV Books:

  • EMV Book 1: Architecture, Electrical Parameters, and Physical Transport Protocols (ISO/IEC 7816-1, -2, -3, and Application Selection via ISO/IEC 7816-4).
  • EMV Book 2: Security and Cryptographic Architecture (RSA Public Key Infrastructure, Static/Dynamic Data Authentication, Symmetric Session Key Derivation, ARQC / ARPC generation).
  • EMV Book 3: Application Processing, Transaction Flow, Cardholder Verification Methods (CVM), Terminal Risk Management, and Action Analysis.
  • EMV Book 4: Cardholder, Merchant, and Acquirer Terminal Interface Requirements and ISO 8583 Field 55 Data Mapping.

ISO/IEC 8825 BER-TLV Encoding Syntax Demystified

Every data object exchanged between an EMV chip card and a payment terminal is structured according to Basic Encoding Rules (BER) for Type-Length-Value (TLV) elements as specified in ISO/IEC 8825 and ISO/IEC 7816-4.

1. Tag Field Anatomy (1 to 3 Bytes)

The Tag field identifies the specific data element. In binary, the first byte of a tag conveys both structural class and primitive/constructed nature:

Bit Position Bit Value Significance in BER-TLV
Bits 8 & 7 (Class) 00 Universal Class (defined by ISO/IEC 8825)
Bits 8 & 7 (Class) 01 Application Class (e.g. Tag 4F, Tag 50, Tag 82, Tag 95)
Bits 8 & 7 (Class) 10 Context-Specific Class (e.g. Tag 9F02, Tag 9F1A, Tag 9F37)
Bits 8 & 7 (Class) 11 Private Class (e.g. Tag DF8129 Mastercard Kernel 2 tags)
Bit 6 (Structure) 0 Primitive: Value contains raw data bytes
Bit 6 (Structure) 1 Constructed: Value contains nested TLV objects
Bits 5 through 1 11111 (0x1F) Multi-Byte Tag: Tag extends into subsequent bytes

2. Length Field Mechanics: Short Form vs Long Form

The Length field indicates the number of bytes that constitute the Value field:

  • Definite Short Form: If the value is 127 bytes or fewer, bit 8 is set to 0, and bits 7 through 1 state the integer length (e.g., 0x06 indicates 6 bytes; 0x20 indicates 32 bytes).
  • Definite Long Form: If the value is 128 bytes or greater, bit 8 is set to 1, and bits 7 through 1 specify how many subsequent bytes represent the length integer. For example, 0x81 0x90 indicates a 1-byte length field of 144 bytes; 0x82 0x01 0x20 represents a 2-byte length field of 288 bytes.

Critical EMV Tags in the Transaction Flow

During an EMV transaction, terminal and card execute an interactive dialog governed by APDU (Application Protocol Data Unit) commands. The following tags represent pivotal operational milestones:

Tag Name Length / Format Role in Transaction Execution
4F Application Identifier (AID) 5–16 bytes (b) Identifies the payment brand and product (e.g., A0000000031010 for Visa Credit, A0000000041010 for Mastercard).
82 Application Interchange Profile (AIP) 2 bytes (b) Returned in response to GET PROCESSING OPTIONS; signals card authentication capabilities (SDA, DDA, CDA).
9F02 Amount, Authorized (Numeric) 6 bytes (n 12) Primary transaction monetary total expressed in minor currency units (e.g., $25.00 is 000000002500).
9F37 Unpredictable Number (UN) 4 bytes (b) Random nonce generated by the POS terminal to prevent replay attacks against the card application cryptogram.
95 Terminal Verification Results (TVR) 5 bytes (b) Cumulative audit log recording all offline auth failures, expired card flags, and CVM results prior to cryptogram creation.
9F26 Application Cryptogram (AC) 8 bytes (b) The cryptographic proof of card authenticity (ARQC, TC, or AAC) generated via 3DES or AES MAC over CDOL1 data.
9F36 Application Transaction Counter (ATC) 2 bytes (b) Monotonically increasing integer counter stored in card EEPROM; protects against cloned magnetic-stripe replays.

Deep Dive: Terminal Verification Results (Tag 95 TVR)

The Terminal Verification Results (TVR) is arguably the most vital diagnostic data element in all of payment terminal debugging. When an EMV chip transaction is declined by an issuer or forced online, the 5-byte TVR bitmask pinpoints the exact technical cause:

Byte 1: Offline Data Authentication
  Bit 8: Offline data authentication was not performed
  Bit 7: SDA failed
  Bit 6: ICC data missing
  Bit 5: Card appears on terminal exception file (hotlist)
  Bit 4: DDA failed
  Bit 3: CDA failed

Byte 2: Cardholder Verification & Application Checks
  Bit 8: ICC and terminal have different application versions
  Bit 7: Expired application (Transaction Date > Tag 5F24)
  Bit 6: Application not yet effective (Transaction Date < Tag 5F25)
  Bit 5: Requested service not allowed for card product (AUC Tag 9F07)
  Bit 4: New card (first transaction)

Byte 3: Cardholder Verification Method (CVM) Status
  Bit 8: Cardholder verification was not successful
  Bit 7: Unrecognised CVM
  Bit 6: PIN Try Limit exceeded
  Bit 5: PIN entry required and PIN pad not present or not working
  Bit 4: PIN entry required, PIN pad present, but PIN not entered
  Bit 3: Online PIN entered

Byte 4: Terminal Risk Management
  Bit 8: Transaction amount exceeds floor limit
  Bit 7: Lower consecutive offline limit exceeded
  Bit 6: Upper consecutive offline limit exceeded
  Bit 5: Transaction selected randomly for online processing
  Bit 4: Merchant forced transaction online

Byte 5: Completion & Issuer Scripting
  Bit 8: Default TDOL used
  Bit 7: Issuer authentication failed (ARPC cryptogram rejected)
  Bit 6: Script processing failed before final GENERATE AC
  Bit 5: Script processing failed after final GENERATE AC

Troubleshooting Tip for Payment Gateway Integrators

If a gateway returns decline reason code 05 (Do Not Honor) on chip transactions, inspect TVR Byte 2 Bit 7 (Expired card) and TVR Byte 3 Bit 6 (PIN Try Limit exceeded). In over 80% of integration defects, the POS terminal operating system clock is set incorrectly in UTC, causing cards expiring at the end of the month to be falsely flagged as expired!

Application Cryptograms: ARQC, TC, and AAC Explained

At the conclusion of terminal action analysis, the POS issues the GENERATE AC command to the smart card chip, providing the concatenated data elements requested in CDOL1 (Tag 8C). The card evaluates the inputs against its internal risk parameters and issues one of three cryptogram types in Tag 9F26:

  1. Authorization Request Cryptogram (ARQC - Tag 9F27 = 0x80): The card requests online authorization from the issuing bank. The terminal forwards the ARQC, ATC (Tag 9F36), UN (Tag 9F37), and transaction details in ISO 8583 Field 55 to the payment network. The issuer HSM derives the card session key, recalculates the MAC, and returns an Authorization Response Cryptogram (ARPC) in Field 55 with Tag 8A (Response Code).
  2. Transaction Certificate (TC - Tag 9F27 = 0x40): The card approves the transaction offline without contacting the issuer host. The TC serves as cryptographic proof that the card approved the offline transaction under authorized floor limits.
  3. Application Authentication Cryptogram (AAC - Tag 9F27 = 0x00): The card refuses to process or authorize the transaction, resulting in immediate offline terminal termination.

Contactless EMV Kernels (Mastercard PayPass, Visa payWave, Amex ExpressPay)

In contactless (NFC) EMV transactions codified under the EMV Contactless Specifications (Books A through D), different payment schemes utilize dedicated Kernels:

  • Kernel 1: JCB Contactless Specification.
  • Kernel 2: Mastercard PayPass (utilizing proprietary tags like DF8117 Card Data Input Capability and DF8129 Outcome Parameter Set).
  • Kernel 3: Visa payWave (qVSDC / Quick Visa Smart Debit Credit).
  • Kernel 4: American Express ExpressPay.
  • Kernel 6: Discover DPAS Contactless.
  • Kernel 7: UnionPay QuickPass.

How to Use EMV Tag Lookup & TLV Parser

  1. Search by Tag Hex or Keyword

    Filter 150+ EMV tags by hexadecimal identifier (e.g. 9F02, 5F2A, 82), keyword, data format, or source specification.

  2. Inspect Tag Specifications & Bitmasks

    Examine data lengths, encoding formats (b, n, cn, ans), source books, and individual byte bitmask definitions for TVR and AIP.

  3. Parse Raw BER-TLV Hex Streams

    Switch to the Raw TLV Stream Parser tab, paste your APDU or ISO 8583 Field 55 hex string, and inspect the decoded element tree.

Authoritative Tag 9F02 BER-TLV Decoding Example

Raw TLV Hex
9F0206000000001050
Decoded Tag Object
Tag 9F02 (Amount, Authorized Numeric) | Length: 6 Bytes | Value: $10.50 (000000001050)

Decoded deterministically in browser RAM per EMV Book 4 specification.

Technical Specifications

  • Supported Inputs: Hexadecimal Tags (e.g. 9F02, 5F2A, 82), BER-TLV Hex Streams (ISO/IEC 8825), ISO 8583 Field 55 Payloads, APDU Response Templates
  • Input Limit: Unlimited hex stream decoding in local browser memory
  • Processing Engine: 100% In-Browser (ISO/IEC 8825 BER-TLV Engine + EMVCo Dictionary)
  • Content Uploads: None (Your files and text are processed locally on your device with zero uploads)

Privacy & Security Guarantee

Your EMV smart card data objects, cryptograms, and bitmasks are processed entirely in your web browser's memory using native client-side web technologies. Unlike traditional cloud tools, your content is never uploaded to remote servers, stored on external disks, or analyzed by third parties.

2ClickKit In-Browser vs Traditional Cloud Tools

Feature 2ClickKit (In-Browser) Traditional Cloud Services
Data Privacy Files never leave your local device Uploaded to remote servers and third-party clouds
Processing Speed Instant local execution (0ms upload time) Constrained by internet upload & server processing queues
Account & Costs 100% Free with zero registration or paywalls Tiered subscriptions, limits, or forced sign-ups

Best Practices & Tips

  • When debugging transaction declines, decode Tag 95 (TVR) and Tag 9B (TSI) to identify the exact verification failure.
  • Verify whether Tag 5F2A (Currency Code) matches Tag 9F1A (Country Code) to distinguish domestic vs cross-border interchange rates.
  • Remember that in BER-TLV, lengths greater than 127 bytes use long-form notation with a leading 0x81 or 0x82 byte.

Frequently Asked Questions

What is an EMV TLV Tag and how is it formatted?

In the EMV (Europay, Mastercard, Visa) integrated circuit card specifications, data objects are encoded using BER-TLV (Basic Encoding Rules — Tag, Length, Value) codified in ISO/IEC 8825. A Tag identifies the data object (such as Tag 9F02 for Amount Authorized). The Length specifies how many bytes the value occupies. The Value contains the raw data bytes. Tags can be 1, 2, or 3 bytes long depending on leading bits.

What is the difference between Primitive and Constructed EMV tags?

A Primitive tag contains a direct atomic value (e.g., Tag 9F02 contains 6 numeric bytes representing the transaction amount). A Constructed tag (also called a template) contains one or more nested TLV data objects inside its value field (e.g., Tag 6F FCI Template or Tag 70 Read Record Template). In BER-TLV, bit 6 of the first tag byte indicates structure: 0 for primitive and 1 for constructed.

How do you determine if an EMV tag has two or three bytes?

Look at the first byte of the tag. If bits 5 through 1 (the lower 5 bits) are all binary 1s (hexadecimal value ending in 1F), the tag continues into the second byte. In the second byte, if bit 8 (most significant bit) is 1, the tag continues into a third byte. For example, 9F02: first byte is 0x9F (lower 5 bits are 11111 = 1F), so it extends to byte 2 (0x02, bit 8 is 0), terminating as a 2-byte tag.

What is Tag 9F02 and how are monetary amounts formatted?

Tag 9F02 is the Authorized Amount (Numeric), occupying exactly 6 bytes (12 packed decimal digits). It contains the monetary transaction amount expressed in minor currency units without a decimal point. For example, a purchase of $10.50 USD (currency exponent 2) is formatted as 000000001050. Tag 9F02 is a mandatory component in Card Risk Management Data Object List 1 (CDOL1).

What is the Terminal Verification Results (TVR / Tag 95)?

Tag 95 (TVR) is a 5-byte (40-bit) status bitmask populated by the POS terminal during transaction processing. Each individual bit represents a specific risk, security anomaly, or condition (e.g., Offline data authentication failed, Card expired, PIN try limit exceeded, Floor limit exceeded). The card chip inspects the TVR during the GENERATE AC command to decide whether to authorize the payment offline (TC), decline (AAC), or request online host authorization (ARQC).

What is the Application Interchange Profile (AIP / Tag 82)?

Tag 82 (AIP) is a 2-byte bitmask returned by the smart card during the GET PROCESSING OPTIONS command. It informs the terminal which cryptographic capabilities and security protocols the card supports, including Static Data Authentication (SDA), Dynamic Data Authentication (DDA), Combined DDA/AC Generation (CDA), Cardholder Verification, and Terminal Risk Management.

Where is EMV TLV data found in financial transaction messages?

In ISO 8583 financial authorization messages, EMV chip data is encapsulated in Field 55 (Integrated Circuit Card Related Data). In ISO 20022 banking XML schemas, it is located within the CardPaymentTransactionDetails/ICCRelatedData block. Point-of-Sale terminals transmit these TLV blocks to payment gateways for issuer cryptogram validation.