All guides
Home / Guides / X12 vs EDIFACT

X12 vs EDIFACT: What's the Difference?

EdiPeek · Updated June 2026 · 6 min read

There is no single global EDI standard. Two dominate the world, and which one you encounter depends mostly on geography. ANSI X12 rules North America; UN/EDIFACT rules most of the rest of the world. They do the same job — moving orders, invoices, and shipping notices between companies — but they look different on the wire.

The quick comparison

Syntax differences

The biggest visible difference is the delimiters — the characters that separate the pieces.

X12

ST*850*0001~
BEG*00*SA*PO-99831**20240115~

Segments end with a tilde ~, elements are separated by an asterisk *, and the envelope is defined by the ISA header.

EDIFACT

UNH+1+ORDERS:D:96A:UN'
BGM+220+PO-55012+9'

Segments end with an apostrophe ', elements with a plus +, components with a colon :, and an optional UNA string can declare those delimiters explicitly.

Ad slot — insert AdSense unit here

Structure differences

Both wrap their content in envelopes, but the envelope segments are named differently:

In both, the innermost header (ST for X12, UNH for EDIFACT) is what tells you which document type you are looking at.

Which transaction maps to which

The same business document exists in both standards under different labels:

Which one will you deal with?

If you trade primarily with U.S. partners, you will see X12. If you trade with European or global partners, expect EDIFACT. Many companies that operate internationally have to handle both.

Try both

EdiPeek reads both standards. Paste an X12 or an EDIFACT message and get a plain-English breakdown — in your browser, nothing uploaded.

X12 viewer   EDIFACT viewer