EDIFACT Viewer
Paste an EDIFACT file into the editor and its data elements show up here, one row each.
Or drop an .edi file on this box, , or .
An EDIFACT viewer for the files your partners send
If you have ever had to answer "why did this order go to the wrong address?", you know the routine. Someone forwards an EDIFACT file, it arrives as one long line of plus signs and apostrophes, and you start counting separators to find the third element of the second NAD. This EDIFACT viewer does the counting. Paste an interchange and each segment becomes a block of rows: the position (NAD-01), a short name with the directory tag (Party function, 3035) and the value. Common codes get a note next to them, so BY reads as buyer and 137:20261203:102 as the document date, 2026-12-03.
Under the table is an EDIFACT parser written for this page. It takes the separators from the UNA service string advice when the file has one, so a partner who picked a different decimal mark or segment terminator still parses, and falls back to the standard :+.? ' when it doesn't. The release character is honoured (St Mary?'s Road is one value, not the end of a segment), files wrapped at a fixed line width are joined back up, and the counts are checked: UNT against the real number of segments and the UNH reference, UNZ against the number of messages and the UNB reference. The directories behind the names are published by UNECE, and their introduction to UN/EDIFACT is a good place to start; the EDIFACT article on Wikipedia covers the history and the message families.
The element names are our own short wording, based on the D.96A layout that most retail and distribution traffic still uses. The file is parsed in your browser tab and is not sent anywhere, which matters when it holds real prices and customer addresses. The table is the one our JSON parser draws, so the column filters, the full-screen view and the Excel export all work here too.
How to read an EDIFACT file with this viewer
Paste or drop the file
Paste an interchange, a single message or a batch of messages into the editor on the left, or drop an .edi or .txt file onto the tool. Segments can be on one line or one per line. Sample loads a fictional ORDERS message: an office supplier ordering Lenovo and Dell laptops from an IT distributor.
Read the status and the count checks
Above the table you get the directory (D96A), the message type, the number of messages and segments, and one line per check, marked OK or Warning. A UNT that says 34 segments when the message has 33 usually means a mapping dropped a segment after the trailer was written, and an interchange that stops before UNZ was most likely cut off in transfer.
Open the composite elements
A composite such as 5412345000013::9 is shown as written, with a note for any code it contains. Press Expand components to split it into Party ID (3039), Code list (1131) and Agency (3055), each on its own row. Show empty elements lists the positions the sender left blank, which helps when an implementation guide marks one as required.
Filter, export or take it as JSON
Type NAD in the Element filter or date in the Name filter to cut the table down to what you need. Excel downloads the table as shown, and Copy as JSON puts the parsed interchange on your clipboard in the same shape the EDIFACT to JSON converter produces.
When an EDIFACT viewer saves time
Goods delivered to the wrong building
Compare the NAD segments: BY (buyer), SU (supplier), DP (delivery party) and IV (invoicee). In EANCOM files the party ID is normally a GLN with agency 9, and a head-office GLN in NAD+DP is a common reason laptops end up at reception instead of the warehouse dock.
An invoice your system rejected
Check each line's QTY, PRI and MOA+203 against each other, then the summary amounts after UNS+S: 79 for the line total, 125 for the taxable amount, 77 for the invoice amount. The TAX rows show the VAT category, for example AE for reverse charge.
Onboarding a new trading partner
Paste their test file before you write the mapping and see what they really send: which DTM qualifiers come through, whether PIA carries the supplier article number, whether they write a UNA line at all, and which positions they leave empty. Anyone who has set up electronic data interchange with a new partner knows how many test rounds that saves.
A despatch advice that doesn't match the order
Put the DESADV next to the ORDERS message and compare the LIN item numbers and quantities: QTY+12 is what was despatched, QTY+21 what was ordered. The CPS and PAC rows in between show how the goods were packed, pallet by pallet.
Frequently Asked Questions
Is my EDIFACT file sent to a server?
No. The parsing and the table happen in your browser, and the page makes no request with your file in it. Business documents still deserve care, so follow your company's rules about where partner data may be pasted.
Which messages and segments does it know by name?
The service segments (UNA, UNB, UNG, UNH, UNS, UNT, UNE, UNZ) and the segments used most in ORDERS, ORDRSP, DESADV, INVOIC, PRICAT and APERAK: BGM, DTM, NAD, RFF, LIN, PIA, IMD, QTY, PRI, MOA, TAX, CNT, CUX, FTX, LOC, CPS, PAC, ERC, CTA, COM and PAT. The names are our own short wording, and the numbers in brackets are the directory tags, so you can look an element up in the directory for your version. Any other segment is still parsed and shown by position, so nothing in the file is hidden.
What does the UNA line do, and what if my file has none?
UNA is a nine-character line at the very start that says which characters separate components, elements and segments, which one is the decimal mark and which one releases a separator. UNA:+.? ' is the standard set. Without UNA the viewer uses that set, and when UNB says syntax version 4 it also treats * as the repetition separator, which is the default for that version.
How are release characters shown?
A ? in front of a separator makes it an ordinary character: St Mary?'s Road is one value with an apostrophe, and ?+44 a phone number with a plus sign. A single value is shown with the release characters removed. A composite is shown as written until you press Expand components, which shows each component with them removed. Copy as JSON always removes them.
What do the count checks mean?
UNT carries the number of segments in the message, counting UNH and UNT themselves, and repeats the UNH reference. UNE carries the number of messages in its group, UNZ the number of messages in the interchange (or of groups, when UNG is used), and both repeat the reference from their header. A mismatch usually means a segment was added or removed after the trailer was written, or the file was cut short, and most receivers reject the interchange at that point.
Does it check the file against the directory or my partner's guide?
No. It checks the syntax, the segment tags and the counts, not which segments are mandatory, which codes are allowed or how long a value may be. A clean status line means the file is readable and complete, not that your partner will accept it.
Can it read ANSI X12 files too?
Use the X12 viewer for those; it reads the ISA, GS and ST envelopes and checks the control numbers. If you paste an X12 file here, the page tells you so instead of showing a broken table.
Related tools
Convert the file, read the American X12 format, or work with the JSON.