
Last updated: November 4, 2026 · Reviewed by BOLD VAN's EDI team
In This Article
Quick Answer
X12 (also called ANSI X12 or ASC X12) is the most widely used EDI standard in North America. It defines how business documents such as purchase orders (850), invoices (810) and advance ship notices (856) are formatted, using data elements grouped into segments and loops inside transaction sets. X12 is a format standard, not a transmission protocol: X12 documents are sent using protocols such as AS2, SFTP or HTTPS, or through a VAN.
Definition
X12 (ASC X12, ANSI X12) is an electronic data interchange (EDI) standard developed by the Accredited Standards Committee X12, chartered by the American National Standards Institute (ANSI) in 1979. It defines the structure and content of hundreds of business documents, called transaction sets, so trading partners' systems can exchange data in a common format. X12 is used across retail, manufacturing, transportation, health care, finance and government.
Electronic data interchange (EDI) lets businesses exchange documents and synchronize data with trading partners quickly and accurately. For that to work, both partners need to agree on the same format, much like two people agreeing on a common language. X12 is one of the most widely used of those formats and is used in virtually every industry that exchanges EDI data.
X12 is a standard, not a transmission protocol. The difference matters:
In practice, an X12 purchase order might be sent over AS2 to a retailer, over SFTP to a 3PL, or through a value-added network (VAN). Security comes from the connection method and how data is stored, not from the X12 format itself.
Early EDI grew out of the transportation industry and military logistics, where large volumes of shipping data needed to move reliably. To create a cross-industry standard, ANSI chartered the Accredited Standards Committee X12 in 1979. Since then, many industries have developed X12 transaction sets for their own needs, and the standard continues to be updated in numbered versions, such as 4010 and 5010.
X12 also plays a central role in health care. Under HIPAA, covered entities conducting certain administrative transactions electronically, such as claims and eligibility checks, must use ASC X12 Version 5010 (retail pharmacy transactions use a separate NCPDP standard).
An X12 document is built from small pieces nested inside larger ones:
| Building Block | What It Is | Example |
|---|---|---|
| Data element | A single piece of information, such as a date, quantity or ID | 20261104 (a date) |
| Composite element | A data element made of several components, separated by a component separator | A procedure code with qualifier and modifiers in a health care claim |
| Segment | A group of related elements that starts with a 2- or 3-character segment ID | BEG (beginning of a purchase order), PO1 (line item) |
| Loop | A repeating group of related segments | One loop per line item or ship-to location |
| Transaction set | A complete business document, from ST to SE | 850 Purchase Order |
| Envelopes | Wrappers that group and address transaction sets | GS/GE (functional group), ISA/IEA (interchange) |
Special characters separate the pieces. A common convention uses * between elements, : between components and ~ at the end of each segment, though the exact delimiters are set in each interchange's ISA header. Fortunately, EDI software handles this structure for you.
Here is a simplified example of the core of an X12 850 purchase order (the ISA and GS envelopes are omitted):
ST*850*0001~
BEG*00*SA*PO12345**20261104~
N1*ST*ABC Distribution Center~
PO1*1*24*EA*12.50**VP*ITEM-100~
CTT*1~
SE*6*0001~
ST starts transaction set 850, control number 0001.BEG identifies a new stand-alone purchase order, PO12345, dated Nov. 4, 2026.N1 names the ship-to location.PO1 orders 24 each of vendor part ITEM-100 at $12.50.CTT gives the number of line items (1).SE ends the transaction set and counts its segments (6).| Transaction Set | Name | What It Does |
|---|---|---|
| 204 | Motor Carrier Load Tender | A shipper offers a shipment to a motor carrier |
| 810 | Invoice | The electronic version of a paper invoice |
| 820 | Payment Order/Remittance Advice | Initiates a payment or sends remittance details |
| 846 | Inventory Inquiry/Advice | Shares inventory levels |
| 850 | Purchase Order | Replaces a paper purchase order |
| 855 | Purchase Order Acknowledgment | The seller confirms receipt of a PO and whether it accepts, changes or rejects items |
| 856 | Ship Notice/Manifest (Advance Ship Notice) | Details what is in a shipment, how it is packed and when it will arrive |
| 990 | Response to a Load Tender | The carrier accepts or declines a load tender |
| 997 | Functional Acknowledgment | Confirms a document was received and passed syntax checks |
| X12 | EDIFACT | |
|---|---|---|
| Developed by | ASC X12, chartered by ANSI | United Nations (UN/CEFACT) |
| Primary region | North America | Europe and international trade |
| Document names | Numbers (850, 810, 856) | Six-letter codes (ORDERS, INVOIC, DESADV) |
| Example: purchase order | 850 | ORDERS |
| Example: ship notice | 856 | DESADV |
Many businesses also need other standards, such as EDIFACT for international partners. With BOLD VAN, you can work in X12, EDIFACT, TRADACOMS, ODETTE, VDA and more:
2026 Free Mapping Event
New to EDI or moving from another provider? Through Dec. 31, 2026, we build and maintain the maps for the trading partners you move to BOLD Integration, at no mapping cost.
Tell us which X12 documents your trading partners require, and we will help you meet them. Call (844) 265-3777 or email info@boldvan.com.
Talk to an EDI ExpertX12 is an EDI standard, developed by ASC X12 under ANSI, that defines the format of business documents such as purchase orders, invoices and ship notices so trading partners can exchange them electronically.
Yes. X12, ANSI X12 and ASC X12 all refer to the same EDI standard. The committee that maintains it was chartered by ANSI.
No. X12 is a format standard. Documents in X12 format are sent using transmission protocols such as AS2, SFTP or HTTPS, or through a VAN.
Security depends on how X12 documents are transmitted and stored, not on the format itself. Use encrypted connection methods such as AS2, SFTP, FTPS or HTTPS, and choose a provider that encrypts data at rest.
X12 is used mainly in North America and names documents with numbers, such as the 850. EDIFACT is a UN standard used mainly in Europe and international trade and names documents with codes, such as ORDERS.
Common ones include the 850 purchase order, 855 PO acknowledgment, 856 advance ship notice, 810 invoice, 820 remittance advice, 846 inventory advice, 204 load tender, 990 load tender response and 997 functional acknowledgment.
Yes, for most standard health care transactions. HIPAA requires covered entities conducting those transactions electronically to use ASC X12 Version 5010, while retail pharmacy transactions use the NCPDP standard.
A segment is a group of related data elements that begins with a 2- or 3-character segment ID, such as BEG or PO1, and ends with a segment terminator.
Key Facts
X12 (ASC X12, ANSI X12) is an EDI standard maintained by the Accredited Standards Committee X12, chartered by ANSI in 1979, and is the most widely used EDI standard in North America. X12 documents are built from data elements, segments and loops inside transaction sets, wrapped in ST/SE, GS/GE and ISA/IEA envelopes. X12 is a format standard, not a transmission protocol; it is sent over AS2, SFTP, HTTPS or through a VAN.
Common X12 transaction sets include the 850, 855, 856, 810, 820, 846, 204, 990 and 997. HIPAA requires ASC X12 Version 5010 for most standard health care transactions. According to BOLD VAN, it supports X12, EDIFACT, TRADACOMS, ODETTE and VDA over encrypted connection methods.


