# ISO 8583 Dataset · Agvel

> Synthetic card-payment messages in the ISO 8583:1987 format, in ASCII and binary, with broken messages, a benchmark and a scorer. Every message is checked by two independent libraries. Not yet released.

Canonical: https://agvel.org/datasets/iso8583/

[Agvel](https://agvel.org/)[Research](https://agvel.org/research/) ISO 8583
## ISO 8583. Synthetic card-payment messages in the 1987 format, in ASCII and in binary, with broken ones and a benchmark scored by rule. Every message is checked by two independent libraries.
This dataset is private for now. It is described here only.
How it was built
## At a glance
60,000 messages
2 encodings
17,000 broken messages
8,000 benchmark tasks
2 libraries cross-checking
## What&rsquo;s in it. ISO 8583 is the message format behind most card payments. This dataset holds 60,000 synthetic messages across eleven scenarios and fourteen message types, each stored as parsed fields and as the exact bytes, in ASCII and in binary.
id string The message’s permanent id, shared by its two encodings.
pair_id string Links a request to its response.
scenario string One of eleven scenarios, from an authorization purchase to a network sign-on.
role string Request, response, advice or network.
mti string The message type indicator, such as 0100.
encoding string ascii or binary.
raw string ASCII records: the whole message as sent, as text.
raw_hex string Binary records: the bytes of the message, as uppercase hex.
fields object Field number to value. The same in both encodings.
present_fields list The field numbers present, in order.
bitmap_hex string The primary bitmap, plus the secondary one when present.
seed integer Reproduces the message.
valid boolean True for every message in the main set.
## Files and splits
Messages 60,000, in each encoding
Broken messages, ASCII 13,000
Broken messages, binary 4,000
Benchmark tasks 8,000
Train messages 48,062
Validation messages 6,068
Test messages 5,870
Formats Parquet, JSONL
A request and its response always land in the same split, and so do the two encodings of a message.
## Broken messages. Each comes from a valid message with exactly one defect. It carries the same fields as a valid record, plus four more. Syntax defects fail to parse; semantic defects still parse, so only a reader that knows the rules catches them.
error_class string Syntax, or semantic.
error_type string The one defect, such as luhn_fail or truncated.
error_field string The field the defect sits in.
source_id string The id of the valid message it was made from.
## Benchmark tasks. 8,000 tasks in eight types, 500 of each in each of validation and test, each with one right answer and a scorer that ships with them.
parse A raw message. Expected: The message type and every field.
pack A message type and fields. Expected: The raw message.
bitmap_decode A bitmap in hex. Expected: The field numbers present.
mti_explain A message type. Expected: Version, class, function and origin.
field_extract A raw message and a field number. Expected: That field’s value.
parse_binary A binary message as hex. Expected: The message type and every field.
transcode An ASCII message. Expected: The same message in binary, as hex.
validate A message in either encoding, valid or broken. Expected: Valid or not, and the defect.
## How it was built. The data is synthetic, made only from open-source libraries and public facts. No card number in it belongs to anyone. A message ships only if every check passes, in each encoding.
- Built on one library, rebuilt by hand A generator on moov-io/iso8583 writes each message. It must match a plain byte-by-byte build, read back, and pack again unchanged.
- Read by a second library pyiso8583 must read the same fields and write the same bytes.
- Content and a third parser A validator checks every value, such as check digits, dates, currency codes and where the MAC sits. A small parser with no library behind it must agree.
- Fuzzed against both 200,000 damaged messages per encoding went to both libraries, and the places they disagree are recorded, not hidden.
## The numbers
Messages passing all six checks 60,000 of 60,000
Broken messages behaving as labelled 17,000 of 17,000
Go fuzzing runs, ASCII spec 10,550,803
Go fuzzing runs, binary spec 9,832,589
Damaged messages, per encoding 200,000
Counts are for v0.2.0. Generation is seeded, so two runs give identical files.
## What it doesn&rsquo;t claim. The claim is narrow on purpose: every message is correct for the declared spec, and nothing more.
Correct for each declared spec The two specs are iso8583-1987-ascii-v1 and iso8583-1987-binary-v1. Each message is 100% correct for its spec.
Not any network&rsquo;s variant It makes no claim about a payment network&rsquo;s own version of the format, or about its field rules.
Not real traffic Every message is synthetic. Which fields a scenario uses is a synthetic profile, and the 1987 version comes first.
## Licence and source
Version v0.2.0
Built 2 Dec 2026
Planned data licence CC BY 4.0
Planned code licence Apache 2.0
Availability Private for now
There is nothing to download yet. This page will link to the release when there is one.
## More from Agvel
[All research](https://agvel.org/research/)[Central bank rates](https://agvel.org/datasets/central-bank-rates/)

---

- Founder and sole author: Ashwin Gopalsamy (https://ashwingopalsamy.in), Pollachi, Tamil Nadu.
- Personal, non-commercial research, independent of any employer.
- Licences: Agvel code Apache 2.0; Agvel data and papers CC BY 4.0; the Agvel name, vel and wordmark all rights reserved. Each project page states that project's own licence, which wins for that project.
- Scoring: fixed tasks scored by rules published as code. A model never grades another model.
- Status: results, scores and papers marked as samples are placeholders until the money-conventions pilot is published. Do not cite sample numbers as findings.
- Contact: hello@agvel.org
- Cite with the page URL and the release version shown on it.
