X12 EDI Viewer — Read Any ANSI X12 File Online
Drop in a raw ANSI X12 file and see every segment labeled in plain English — ISA envelope, GS functional group, ST transaction set, and every data segment in between. No trading-partner setup, no software install.
Drag & drop your X12 file here
Up to 50MB — parsed entirely in your browser
or try it instantly — Try With a Sample File, no upload needed:
No file parsed yet — upload an X12 file or load a sample above to see results here.
Parsed X12 Preview
Standard Detected
—
Delimiters
—
Segments
—
Record Groups
—
| Group | Segment ID | Segment Description | Element # | Value |
|---|
What Is an X12 EDI Viewer?
ANSI X12 is the EDI standard used across North American healthcare, retail, logistics and finance for exchanging structured business documents — claims, purchase orders, invoices, ship notices, and more. Raw X12 files are single unbroken lines of text separated by control characters, so they are effectively unreadable when opened in Notepad or a plain text editor. An X12 EDI viewer parses that raw text, splits it at the correct delimiters, and displays each segment with a human-readable label so you can actually understand what the file contains.
Read the Full Guide: How the Viewer Works, Envelope Structure, and More
How This Viewer Reads an X12 File
Every valid X12 file begins with an ISA segment — the interchange control header. Its exact character positions define the three delimiters the rest of the file uses: the element separator (commonly *), the segment terminator (commonly ~), and sometimes a component/sub-element separator (commonly :). This tool reads the ISA segment first, extracts those exact characters — rather than assuming a fixed set of symbols — and only then splits the rest of the file. That matters because different trading partners configure different delimiter characters, and a viewer that hardcodes "split on ~" will silently produce garbage on a file that uses a different terminator.
Once split, each segment is matched against a segment dictionary (ISA, GS, ST, BHT, CLM, N1, PO1, HL, and dozens more) to attach a plain-English label. Segments the dictionary doesn't recognize are still shown, labeled "Unrecognized / Custom Segment," rather than being dropped — so you always see 100% of the file's content, never a partial view.
The X12 Envelope Structure, Explained
- ISA / IEA — the interchange envelope. One ISA/IEA pair wraps the entire file and identifies the sender, receiver, and delimiters.
- GS / GE — the functional group envelope. Groups one or more transaction sets of the same type (e.g. all the 837 claims in this file).
- ST / SE — the transaction set envelope. Each ST/SE pair is one logical document — one claim, one purchase order, one invoice.
- Data segments — everything between ST and SE: the actual business content (BHT, NM1, CLM, N1, PO1, etc.), specific to the transaction set type identified by the ST segment's first element (e.g. "837", "850", "810").
Which X12 Transaction Sets Can You View?
This viewer is not limited to a single transaction set — it works on any valid X12 file because it parses structurally (by delimiter and envelope position) rather than hardcoding logic for one document type. Commonly viewed transaction sets include:
- 837 — Healthcare Claim
- 835 — Healthcare Claim Payment / Remittance Advice
- 850 — Purchase Order
- 810 — Invoice
- 856 — Advance Ship Notice (ASN)
- 834 — Benefit Enrollment and Maintenance
Viewer vs. Converter: What's the Difference?
This page and the CSV/Excel/JSON conversion pages use the exact same underlying parsing engine — "viewing" and "converting" are really just two views of the same parsed result. If your goal is to read and understand a file, stay here. If your goal is to get the data into a spreadsheet or script, jump to EDI to CSV, EDI to Excel, or EDI to JSON — every export button on this page produces the same output those pages describe.
Also Known As
People also search for this as an "X-12 EDI viewer," "edi viewer convertor," or land here after typing "x12 file won't open" — all describe the same task this tool handles.
Related Guides
New to X12? Start with What Is an EDI File? and X12 vs EDIFACT, then EDI Delimiters Explained for a deeper look at the ISA header mechanics described above.
Frequently Asked Questions
Does this viewer work with any X12 transaction set, or just specific ones?
Any valid X12 file — the parser works structurally from the ISA header's delimiters and envelope positions, not from a hardcoded list of transaction types.
What if my file uses unusual delimiter characters?
The delimiters are read directly from your file's own ISA segment, so non-standard characters are handled automatically as long as the ISA header is well-formed.
Is my X12 file uploaded to a server?
No. All parsing happens locally in your browser using JavaScript. The file is never transmitted anywhere.
Can I export what I view here?
Yes — the same CSV, Excel, and JSON export buttons shown after parsing are available on this page.
Does this work on Mac, iPhone, or Chromebook, and with both 4010/5010 versions?
Yes on device — it runs in any modern browser on Windows, Mac, Chromebook, or iPad. It also reads structurally, so 4010, 5010, and other X12 versions all display correctly. It currently views one file at a time, with no bulk/batch upload feature.
Can I convert X12 to XML here?
Yes. Export options are CSV, Excel, JSON and XML. The XML output keeps each X12 segment as its own node — segment ID and description as attributes, data elements as positioned children — which maps more naturally onto X12's segment/element hierarchy than a flat table does.