Skip to content

Free EDIFACT Viewer and Validator

Read EANCOM ORDERS, DESADV and INVOIC messages and TRADACOMS files segment by segment, with every code translated and every envelope count checked.

Runs in your browser. Nothing you enter or paste is sent to OrderSync.

Try a sample:

X12, EDIFACT or TRADACOMS, up to 2 MB. Pasting reads it straight away; or choose a file.

EDIFACT Viewer, Parser, and Validator

Paste an interchange or drop in a file and the viewer opens on the Summary tab, which reads the message the way an order desk would: who is buying, what, how many, delivered where and when, then the UNB envelope. The Segments tab lists the file one segment per line for debugging: click any segment to see its elements by position (NAD02.1, QTY01.2) and what each value means. The JSON tab gives you the parsed message to drop into a script or a ticket.

What the Validator Checks

CheckWhat it catches
EnvelopeMissing UNB or UNZ, a UNZ count that does not match the number of messages or groups, and a UNZ control reference that does not echo UNB05
MessagesUnclosed UNH, a UNT segment count that is off by one (the most common hand-edit mistake), and UNT references that do not match UNH01
ContentMissing BGM or DTM+137 document date, CNT+2 line counts that disagree with the LIN segments, and invalid CCYYMMDD dates
GS1 identifiersGTINs on LIN, GLNs on NAD, and SSCCs on GIN+BJ that fail the GS1 check digit
SyntaxClashing UNA separators, an unknown UNB character set, lower case data under UNOA, and release character (?) escapes

What it does not check is your trading partner's implementation guide. A message can be structurally valid EDIFACT and still be rejected because a retailer requires a segment the directory treats as optional. Use the retailer compliance pages for what each customer expects, or pick a UK retailer under Validate for once a file is loaded.

EDIFACT Format at a Glance

An EDIFACT interchange opens with an optional UNA that declares the separators, then UNB with the sender, recipient, date, and control reference. Each business document is a message between UNH and UNT. Segments end with an apostrophe, data elements are separated by +, and components by :. A ? in front of any of those makes it literal data, so O?'Brien reads as O'Brien.

EDIFACTX12 equivalentPurpose
UNB / UNZISA / IEAInterchange envelope
UNG / UNEGS / GEFunctional group (optional in EDIFACT)
UNH / UNTST / SEOne business document
ORDERS850Purchase order
ORDRSP855Purchase order response
DESADV856Despatch advice (ASN)
INVOIC810Invoice
CONTRL997Syntax acknowledgement

EANCOM and TRADACOMS

Most UK and European retail EDIFACT is EANCOM, the GS1 subset. You can spot it from the association code at the end of UNH02, such as EAN008, and from 13-digit GLNs with agency code 9 on every NAD.

TRADACOMS is older and UK only. It looks similar but writes the segment tag with an equals sign (MHD=1+ORDERS:9'), wraps the transmission in STX and END, and splits an order file into header, order, and trailer messages. The viewer reads both. For the background, see the EDIFACT guide and the TRADACOMS guide. Working with US customers too? This page reads X12 as well, and the X12 EDI viewer adds a 997 generator and US retailer checks.

Frequently Asked Questions

What is the difference between EDIFACT and X12?

Both are EDI standards for the same business documents. X12 is the North American standard: an order is an 850, wrapped in ISA, GS, and ST envelopes. UN/EDIFACT is the United Nations standard used in the UK, Europe, and most of the world: an order is an ORDERS message, wrapped in UNB and UNH. The separators differ too. X12 commonly uses * and ~, EDIFACT uses + : and an apostrophe.

Is EANCOM the same as EDIFACT?

EANCOM is GS1's subset of UN/EDIFACT for retail and consumer goods. It uses the same syntax and message names, but narrows which segments and codes are used and expects GS1 identifiers: GLNs for parties, GTINs for products, and SSCCs for pallets and cartons. The association code in UNH, such as EAN008, tells you which EANCOM version a message follows.

Can this tool read TRADACOMS files?

Yes. TRADACOMS is the UK retail standard that predates EANCOM and is still used by several UK retailers. The viewer recognises a file that starts STX=, checks the STX to END envelope and every MHD to MTR message count, and lists order lines from OLD segments.

Is my EDIFACT file uploaded anywhere?

No. Parsing and validation run in your browser. The file is never sent to OrderSync servers, and share links carry the document inside the URL fragment, which browsers do not send to servers.

Can I convert EDIFACT to JSON?

Yes. Paste or drop in a file and switch to the JSON tab, or choose Download, then JSON. It gives you the interchange header, each message with its parties, dates, references and lines, and any validation issues as JSON you can copy into a script or a ticket. The conversion runs in your browser, so the file is not uploaded. TRADACOMS files convert the same way.

What does the validator check?

The UNA service string, the UNB header and UNZ trailer (count and control reference), UNG and UNE groups, each UNH to UNT message (segment count and reference), mandatory BGM and document date, CNT line totals against the LIN count, DTM date formats, the UNOA character set, and GS1 check digits on GTINs, GLNs, and SSCCs.