.EDI

EDI File

Electronic Data Interchange Document
Ask a question
QUICK ANSWER

An EDI file is an Electronic Data Interchange document - a standardized, machine-readable business record such as a purchase order, invoice, or shipping notice exchanged between companies. It is plain text in ANSI X12 or UN/EDIFACT format, so any text editor opens it, but the raw content is dense codes and delimiters. To read it as a human, use an EDI viewer or translator.

Developer: N/A (ANSI ASC X12 / UN/EDIFACT standards) Category: Data Files Open standard MIME: application/edi-x12
OPENS ON Windows macOS Linux Web
Related: .PKPASS · .DAT · .JSON · .RIS

On this page

19k+ extensions indexed
Last reviewed Jul 13, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the EDI file format?

The .edi file extension is used by files conforming to the EDI (Electronic Data Interchange) standard. .edi files store structured business transaction data in plain-text format.

.edi files are used for exchanging electronic business documents - such as purchase orders, invoices, and shipping notices - between trading partners. The EDI format emerged as a standardized means of replacing paper-based commerce documents with digital equivalents. There exist many different EDI standard implementations, and no single program supports them all. Therefore, trading partners exchanging .edi files should agree in advance on which EDI standard they use.

The two dominant standard families are ANSI X12 (North America, maintained by ASC X12 since 1979) and EDIFACT (international, since 1987). An X12 document begins with an ISA interchange envelope segment; an EDIFACT document begins with an optional UNA service-string advice segment followed by a UNB interchange header. Within both families, data elements are separated by configurable delimiters and segments end with a terminator character (commonly ~ in X12).

Popular EDI standard implementations include:

  • TRADACOMS - UK retail sector
  • ODETTE / VDA - automotive industry
  • IDOC (SAP) - SAP-native intermediate documents used with EDI workflows
  • EDIFICE - electronics and IT sector
  • cXML / xCBL - XML-based B2B variants
  • OAGIS - Open Applications Group Integration Specification

Security & safety

RISK: LOW

EDI files are plain text with no executable content, so opening one is safe. The real concern is confidentiality: EDI documents carry sensitive business and sometimes personal data (orders, prices, addresses, and in healthcare EDI, patient/claim information governed by HIPAA). Don't paste real EDI into random online 'EDI viewer' sites - use offline tools (Notepad++, a desktop EDI viewer) for anything containing real partner or patient data.

Format details

in a nutshell
FULL NAMEElectronic Data Interchange Document
DEVELOPERN/A (ANSI ASC X12 / UN/EDIFACT standards)since ANSI X12 since 1979; UN/EDIFACT since 1987
CATEGORYData Files
MIME TYPEapplication/edi-x12
TYPEStructured plain-text business document (X12 or EDIFACT)
STANDARDOpen · royalty-free

Programs that open EDI files

Windows5 apps
Microsoft Excel Paid Import the .edi as delimited text to eyeball values - but EDI isn't tabular, so this is a rough view, not a real decode.
Stylus Studio Paid EDI-to-XML conversion and a visual EDI editor that decodes X12/EDIFACT segments to labeled fields.
Notepad Open-source Open the .edi to read the raw segments. Free; shows the text exactly but not field meanings.
Notepad++ with EDI plugins / NotepadEDI Open-source Use an EDI-formatting plugin to add line breaks per segment and make X12/EDIFACT readable.
EDI Notepad (Liaison/OpenText) Freemium Dedicated EDI viewer/editor that parses X12/EDIFACT into readable, validated transaction trees.
macOS1 app
Visual Studio Code Free Open the .edi to read it; add an EDI/X12 syntax extension to split and color segments.
Linux1 app
Visual Studio Code Free Open the raw .edi; use an X12/EDIFACT extension for readability.
Web2 apps
SPS Commerce (managed EDI) Paid A managed EDI service/network that translates documents between you and trading partners (not a quick file viewer).
Online EDI viewers (e.g. EDI inspectors) Free Paste/upload an X12 or EDIFACT file to parse it into readable segments in the browser. Use only non-sensitive samples.

Technical details

deep spec
File typePlain-text structured business document; no binary signature
Primary standard familiesANSI X12 (North America) and UN/EDIFACT (international)
X12 interchange startISA segment at byte offset 0 (Interchange Control Header)
EDIFACT interchange startOptional UNA service-string advice segment, then UNB interchange header
X12 segment terminatorUser-defined; tilde (~) is the de-facto default, declared in ISA16
X12 element delimiterUser-defined; asterisk (*) is the de-facto default, declared in ISA03
Envelope hierarchy (X12)ISA/IEA (interchange) → GS/GE (functional group) → ST/SE (transaction set)
Envelope hierarchy (EDIFACT)UNB/UNZ (interchange) → UNG/UNE (functional group) → UNH/UNT (message)
Common X12 transaction sets850 Purchase Order, 810 Invoice, 856 Advance Ship Notice, 997 Functional Acknowledgment
Common EDIFACT message typesORDERS, INVOIC, DESADV, CONTRL
MIME typeapplication/edi-x12 (X12); application/edifact (EDIFACT)
Character encoding7-bit ASCII by default; EDIFACT extends to ISO 8859 or UTF-8 via UNA service string
HIPAA mandateX12 version 5010 required for all US healthcare EDI transactions since January 2012
Typical file sizeA few hundred bytes for a single transaction to several MB for large batch files
Industry sectorsRetail, healthcare, automotive, logistics, finance, government procurement
ReleasedANSI X12 since 1979; UN/EDIFACT since 1987
Open standardYes · royalty-free
Specificationwww.x12.org

EDI conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with EDI files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about EDI files.

Frequently asked questions

How do I open an EDI file?
It's plain text, so any editor (Notepad++, VS Code) shows the raw content. To actually read it, use an EDI viewer/translator (EDI Notepad, Stylus Studio) that decodes X12/EDIFACT segments into labeled fields.
What does my EDI file mean - it's just codes?
EDI uses compact standards. Look at the header: 'ISA' means ANSI X12, 'UNB/UNA' means EDIFACT. The transaction type tells you the document - X12 850 = purchase order, 810 = invoice, 856 = ship notice; EDIFACT ORDERS/INVOIC/DESADV.
How do I convert EDI to Excel or CSV?
Use EDI translator software (Stylus Studio, an EDI mapping tool) or your EDI service to map the document to CSV. EDI isn't a simple table, so the mapping depends on the transaction type - a plain 'open in Excel' only roughly shows values.
What's the difference between X12 and EDIFACT?
X12 (ANSI ASC X12) is the North American EDI standard; UN/EDIFACT is the international standard. They encode the same kinds of documents differently - X12 uses ISA/GS/ST envelopes, EDIFACT uses UNB/UNG/UNH.
Is .edi the only extension for EDI data?
No. The extension isn't standardized - EDI is often sent as .txt, .x12, .edifact or with no extension. The content (ISA/UNB header) identifies it, not the file name.
Do I need special software to receive EDI?
For ongoing B2B EDI yes - a translator or a managed EDI service (like SPS Commerce) that converts between the EDI standard and your ERP. For a one-off file, a free EDI viewer is enough to read it.

References

1X12 - ANSI ASC X12 standards bodywww.x12.org
2UNECE - UN/EDIFACT standardunece.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.MDMarkdown Document
4.BINCD/DVD Disc Image (BIN/CUE)
5.RPMSGRestricted Permission Message
6.PARTPartial Download File
7.NOMEDIAAndroid No-Media Marker File
8.EXEWindows Executable (Portable Executable)
9.AVIFAV1 Image File Format (AVIF)
10.DBSQLite Database File

Related extensions

.PKPASSApple Wallet Pass (formerly Passbook)
.DATProgram Data File (generic)
.JSONJavaScript Object Notation file
.RISResearch Information Systems citation file
.OFXOpen Financial Exchange
.CSVComma-Separated Values

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z