# Magnetic Stripe Card Standards

## Dimensions - Financial Transaction Cards

<figure><img src="/files/xzbKqbVBPR3OtUVOX2hr" alt=""><figcaption></figcaption></figure>

### ISO

<table data-header-hidden><thead><tr><th width="115.3333740234375" valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">7810</td><td valign="top">Physical characteristics of credit card size document</td></tr><tr><td valign="top">7811-1</td><td valign="top">Embossing</td></tr><tr><td valign="top">7811-2</td><td valign="top">Magnetic stripe - low coercivity</td></tr><tr><td valign="top">7811-3</td><td valign="top">Location of embossed characters</td></tr><tr><td valign="top">7811-4</td><td valign="top">Location of tracks 1 &#x26; 2</td></tr><tr><td valign="top">7811-5</td><td valign="top">Location of track 3</td></tr><tr><td valign="top">7811-6</td><td valign="top">Magnetic stripe - high coercivity</td></tr><tr><td valign="top">7813</td><td valign="top">Financial transaction cards</td></tr></tbody></table>

{% hint style="info" %}
**For copies of specifications contact:** American National Standards Institute 11 W. 42nd Street, New York, NY 10036 212-642-4900
{% endhint %}

### Magnetic Stripe Encoding

<table data-header-hidden><thead><tr><th width="137.3333740234375" valign="top"></th><th width="81.66668701171875" valign="top"></th><th width="126.6666259765625"></th><th></th><th></th></tr></thead><tbody><tr><td valign="top"><strong>Measurement - 0.223"</strong></td><td valign="top"><strong>Track</strong></td><td><strong>Recording Density (bits per inch)</strong></td><td><strong>Character Configuration (including parity bit)</strong></td><td><strong>Information Content (including control characters)</strong></td></tr><tr><td valign="top">0.110"</td><td valign="top">1 IATA</td><td>210</td><td>7 bits per character</td><td>79 alphanumeric characters</td></tr><tr><td valign="top">0.110"</td><td valign="top">ABA</td><td>75</td><td>5 bits per character</td><td>40 numeric characters</td></tr><tr><td valign="top">0.110"</td><td valign="top">THRIFT</td><td>210</td><td>5 bits per character</td><td>107 numeric characters</td></tr></tbody></table>

### Magnetic Stripe Encoding

#### Track 1

76 alphanumeric data characters between Format Code and Discretionary Data.

<table data-header-hidden><thead><tr><th width="49.3333740234375" valign="middle"></th><th width="47.66668701171875" valign="middle"></th><th width="60.6666259765625"></th><th width="46"></th><th width="72.66668701171875"></th><th width="48"></th><th width="105.3333740234375"></th><th width="131.3333740234375"></th><th width="46.6666259765625"></th><th width="61.3333740234375"></th></tr></thead><tbody><tr><td valign="middle"><mark style="color:orange;"><strong>SS</strong></mark></td><td valign="middle"><strong>FC</strong></td><td><strong>PAN</strong></td><td><mark style="color:orange;"><strong>FS</strong></mark></td><td><strong>Name</strong></td><td><mark style="color:orange;"><strong>FS</strong></mark></td><td><strong>Additional data</strong></td><td><strong>Discretionary Data</strong></td><td><mark style="color:orange;"><strong>ES</strong></mark></td><td><strong>LRC</strong></td></tr></tbody></table>

{% hint style="info" %}

#### Orange characters identify control characters

{% endhint %}

#### Encoding Key

* SS: Start Sentinel - %
* FC: Format Code - ^
* PAN: Primary Account Number (19 digits max.)
* FS: Field Separator
* NAME: Name (26 alphanumeric characters max.)
* ADDITIONAL DATA: Number of characters:
  * Expiration Date (YYMM) - 4
  * Service Code - 3
* DISCRETIONARY DATA: Number of characters:
  * PVKI - PIN Verification Key Number
  * PVV or Offset - PIN Verification Value
  * CVV or CVC - Card Verification Value, Card Vakudation Code
* ES: End Sentinel - ?
* LRC: Logitudinal Redundancy Check character

#### Track 2

37 data characters between PAN and Discretionary Data.

<table data-header-hidden><thead><tr><th width="49.3333740234375" valign="middle"></th><th width="60.6666259765625"></th><th width="46"></th><th width="158"></th><th width="179.3333740234375"></th><th width="46.6666259765625"></th><th width="61.3333740234375"></th></tr></thead><tbody><tr><td valign="middle"><mark style="color:orange;"><strong>SS</strong></mark></td><td><strong>PAN</strong></td><td><mark style="color:orange;"><strong>FS</strong></mark></td><td><strong>Additional data</strong></td><td><strong>Discretionary Data</strong></td><td><mark style="color:orange;"><strong>ES</strong></mark></td><td><strong>LRC</strong></td></tr></tbody></table>

{% hint style="info" %}

#### Orange characters identify control characters

{% endhint %}

#### Encoding Key

* SS: Start Sentinel - Hex B - ;
* PAN: Primary Account Number (19 digits max.)
* FS: Field Separator - Hex D - =
* ADDITIONAL DATA: Number of characters:
  * Expiration Date (YYMM) - 4
  * Service Code - 3
* DISCRETIONARY DATA: Number of characters:
  * PVKI - PIN Verification Key Number
  * PVV or Offset - PIN Verification Value
  * CVV or CVC - Card Verification Value, Card Vakudation Code

{% hint style="info" %}
**Some or all of the above Discretionary Data fields may be found with the discretionary data**
{% endhint %}

* ES: End Sentinel - Hex F - ?
* LRC: Logitudinal Redundancy Check character

#### Track 3 (ISO 4909)

104 numeric data characters between Format Code and Additional Data.

<table data-header-hidden><thead><tr><th width="49.3333740234375" valign="middle"></th><th width="47.66668701171875" valign="middle"></th><th width="60.6666259765625"></th><th width="46"></th><th width="124.00006103515625"></th><th width="105.3333740234375"></th><th width="46.6666259765625"></th><th width="61.3333740234375"></th></tr></thead><tbody><tr><td valign="middle"><mark style="color:orange;"><strong>SS</strong></mark></td><td valign="middle"><strong>FC</strong></td><td><strong>PAN</strong></td><td><mark style="color:orange;"><strong>FS</strong></mark></td><td><strong>USE AND SECURITY DATA</strong></td><td><strong>Additional data</strong></td><td><mark style="color:orange;"><strong>ES</strong></mark></td><td><strong>LRC</strong></td></tr></tbody></table>

#### Encoding Key

* SS: Start Sentinel - Hex B - ;
* PAN: Primary Account Number (19 digits max.)
* FS: Field Separator - Hex D - =
* USE AND SECURITY DATA - Number of characters
  * Country Code (optional) - 3
  * Currency Code - 3
  * Currency Exponent - 1
  * Amount Authorized per Cycle - 4
  * Amount Remaining this Cycle - 4
  * Cycle Begin (Validity Date) - 4
  * Cycle Length - 2
  * Retry Count - 1
  * PIN Control Parameters (optional) - 6
  * Interchange Controls - 1
  * PAN Service Restriction - 2
  * SAN-1 Service Restriction - 2
  * SAN-2 Service Restriction - 2
  * Expiration Date (optional) - 4
  * Card Sequence Number - 1
  * Card Security Number (optional) - 9
* ADDITIONAL DATA: Number of characters:
  * First subsidiary account number (optional)
  * Second subsidiary account number (optional)
  * Relay marker - 1
  * Cryptographic check digits (optional) - 6
  * Discretionary Data

{% hint style="info" %}
**A Field Separator (FS) must be used if an optional field is not used**
{% endhint %}

* ES: End Sentinel - Hex F - ?
* LRC: Logitudinal Redundancy Check character
* FC: Format Code - (2 digits) (in place of optional field)

{% hint style="warning" %}
&#x20;The track formats used in this document are based on ISO Standards, however, other formats may be used. Contact your card issuer for your exact requirements
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.magtek.com/hardware/card-readers/magnetic-stripe-readers/idynamo-5-gen-iii/documentation/other-documents/magnetic-stripe-card-standards.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
