Skip to main content

Quick Start

TLV Format

EMV data uses Tag-Length-Value encoding:

Tag Format

  • 1-byte tags: First byte doesn’t have bits 1-5 set to 11111
  • 2-byte tags: First byte ends with 11111 (1F, 5F, 9F, DF)
  • 3-byte tags: Second byte has high bit set
Examples:
  • 82 - Single byte (Application Interchange Profile)
  • 9F26 - Two bytes (Application Cryptogram)
  • DF8101 - Three bytes (if encountered)

Length Format

  • 1-byte length: 0x00-0x7F (0-127 bytes)
  • 2-byte length: 0x81 + 1 byte (128-255 bytes)
  • 3-byte length: 0x82 + 2 bytes (256-65535 bytes)

Common EMV Tags

Cryptogram Types (Tag 9F27)

Parsing Examples

Full EMV Data String

From Parsed Message

Building Examples

Build Field 55

Add to Message

Integration with Demo Module

API Reference

See Core API Reference for complete API documentation.