ISO 8583 REFERENCE

ISO 8583 bitmap: which fields are present

How the bitmap works, how to read one in hex, and what the secondary bitmap adds, with worked examples.

5 min read · By Kevin Medina · Updated November 25, 2026
The short version

The bitmap comes right after the MTI and tells the receiver which data elements follow. It is 64 bits, one per field. If bit 1 is set, a second 64-bit bitmap follows for fields 65 to 128. Convert hex to bits, number them from 1, and every 1 is a field in the message.

What the bitmap does

An ISO 8583 message does not send every field every time. The bitmap is a compact map of which data elements are present. The receiver reads the bitmap first, then reads the fields in ascending order, using the format table in its specification to know how long each one is. Without the bitmap there is no way to know where one field ends and the next begins.

How the bits are numbered

Bits are numbered from 1, starting at the left, most significant bit of the first byte. Bit 1 is the secondary bitmap flag. Bit 2 stands for data element 2 (the primary account number), bit 3 for data element 3 (the processing code), and so on up to bit 64. A bit set to 1 means that field is in the message, a 0 means it is absent.

Reading a hex bitmap

Bitmaps are usually shown as 16 hex characters. Turn each hex character into four bits using this table, join them, and number from the left starting at 1.

HexBitsHexBitsHexBitsHexBits
000004010081000C1100
100015010191001D1101
2001060110A1010E1110
3001170111B1011F1111

Worked example: a primary bitmap

Take the bitmap 3020000000800000. Split it into bytes and expand each one.

ByteHexBitsFields it coversSet bits
1300011 00001 to 83, 4
2200010 00009 to 1611
3000000 000017 to 24none
4000000 000025 to 32none
5000000 000033 to 40none
6801000 000041 to 4841
7000000 000049 to 56none
8000000 000057 to 64none

The message therefore carries data elements 3 (processing code), 4 (transaction amount), 11 (system trace audit number) and 41 (card acceptor terminal ID), in that order after the bitmap. Bit 1 is 0 here, so there is no secondary bitmap.

The secondary bitmap

When a message needs a field above 64, bit 1 of the primary bitmap is set and a second 64-bit bitmap follows it. The second bitmap covers fields 65 to 128, with its own bit 1 standing for field 65. Network management messages are a common case, because field 70 (network management information code) is above 64.

Example for a sign-on request, MTI 0800:

0800  8220000000000000  0400000000000000  ...field data...
      primary bitmap    secondary bitmap
BitmapHexSet bitsMeaning
Primary82200000000000001, 7, 11Secondary bitmap present, field 7 (transmission date and time), field 11 (STAN)
Secondary04000000000000006 (field 70)Field 70, network management information code

The sixth bit of the secondary bitmap is data element 64 + 6 = 70. For the secondary bitmap, add 64 to the bit position you find to get the field number.

Building a bitmap from field numbers

Going the other way is the same process in reverse. List the fields you will send, set those bits, and set bit 1 as well if any field is above 64. For fields 2, 3, 4, 11 and 55 the primary bitmap is 7020000000000200. Field 55 is the last bit that matters, in byte 7, where 02 is 0000 0010 and its seventh bit is field 55.

Binary or ASCII hex on the wire

The same 64 bits can travel two ways. As binary, the bitmap is 8 bytes. As ASCII hex it is 16 characters, so it takes 16 bytes. Some hosts use one, some the other, and a few use EBCDIC for the whole message. The bit positions mean the same thing either way. The ISO 8583 decoder and bitmap decoder work on the hex form, 16 characters per bitmap.

Common mistakes

Decode a bitmap yourself

Paste a bitmap into the ISO 8583 bitmap decoder to list the fields it says are present, or enter field numbers to build a bitmap. To see a whole message, use the message decoder. For annotated messages with real bitmaps in them, see the sample messages.

Frequently asked questions

What is a bitmap in ISO 8583?
The bitmap is a 64-bit field, sent right after the MTI, where each bit says whether the matching data element is present. Bit 1 set means a secondary 64-bit bitmap follows and the message can carry fields 65 to 128.
How do I read an ISO 8583 bitmap in hex?
Convert each hex digit to four bits, write them out left to right, and number the bits from 1. Every bit set to 1 is a data element present in the message. Bit 1 is the secondary bitmap flag, not a data field.
What does bit 1 mean in an ISO 8583 bitmap?
Bit 1 is the secondary bitmap indicator. When it is set, a second 64-bit bitmap follows the first and covers data elements 65 to 128. It does not stand for a data element value in the message body.
Is the bitmap 8 bytes or 16 characters?
Both, depending on encoding. In a binary message it is 8 bytes on the wire. In a message where the bitmap is sent as ASCII hex it is 16 characters. Your host specification says which form it uses, and the decoder tools here expect 16 hex characters.
Which fields can a bitmap show as present?
Fields 1 to 64 with the primary bitmap, and fields 65 to 128 when the secondary bitmap is present. A third bitmap exists in the 1987 standard through field 65, but it is rarely used in practice.
Testing a non-EMV host integration? Foundry Test Bench runs your test cases on a device and records the request, response and device log as evidence. See Foundry Test Bench →

Building against an ISO 8583 host?

Tell us the host, the terminal and the region. A payments engineer will help you scope the integration and certification.

Talk to us Book a meeting with a founder