GuidesExcel Won't Open EDI File

Excel Won't Open My EDI File - Solutions & Workarounds

Complete guide to fixing "file format not supported" errors when opening EDI files in Excel. Learn why Excel can't read X12 format and the fastest solution.

12 min readUpdated January 2025

Quick Answer

Excel returns "file format not supported" because EDI files use X12 formatting with special delimiters (* and ~) instead of commas/tabs. Excel cannot parse X12 natively. Solution: Convert EDI to CSV using PlainEDI (30 seconds), then open in Excel. Alternative: Open in Notepad, use Excel's Text to Columns feature with * delimiter.

Why Excel Can't Open EDI Files

When you try to open an EDI file in Excel (by double-clicking or using File → Open), you'll encounter one of several error messages. The core problem is simple: Excel doesn't recognize the X12 EDI file format.

What Excel Expects vs What EDI Files Provide

FormatWhat Excel ExpectsWhat EDI Files Have
File Type.xlsx, .xls, .csv, .txt.edi, .x12, .dat (plain text)
DelimiterComma (,) or Tab (\t)Asterisk (*) for elements, Tilde (~) for segments
StructureRows and columns (tabular)Hierarchical segments (ISA→GS→ST→segments)
Line BreaksOne row per lineOften no line breaks (one continuous line)

⚠️ Key Point

EDI files ARE plain text (you can open them in Notepad), but they use a specialized structure (X12 standard) designed for computer-to-computer communication, not human reading or Excel spreadsheets. Excel expects commas or tabs to separate columns; EDI uses asterisks (*). Excel expects line breaks between rows; EDI often has no line breaks.

Why EDI Files Use X12 Format Instead of CSV

EDI (Electronic Data Interchange) predates modern spreadsheet software. The X12 standard was designed for:

  • Hierarchical data: Purchase orders contain headers (BEG), line items (PO1), addresses (N1), dates (DTM) — not just flat rows
  • Compact transmission: Minimize file size for 1990s modem/VAN transmission (no extra spaces, no column headers)
  • Strict validation: Fixed-length ISA segment (106 chars) allows automatic validation without parsing entire file
  • Interoperability: Walmart, Target, Amazon all use the same X12 format — vendors don't need custom parsers per retailer

Bottom line: EDI was never meant to be opened in Excel. It's designed for automated systems (ERP, WMS, TMS) to exchange data without human intervention. However, many small vendors need to VIEW the data in Excel for manual processing — which is why conversion tools exist.

Common Error Messages Explained

When you try to open an EDI file in Excel, you'll see one of these errors:

Error 1: "Excel cannot open the file because the extension is not valid"

Cause: Excel doesn't recognize .edi, .x12, or .dat extensions as valid spreadsheet formats.

What's happening: Excel checks the file extension before attempting to open. Since .edi is not in its list of supported formats (.xlsx, .xls, .csv, .txt, etc.), it rejects the file immediately.

Error 2: "File format or file extension is not supported"

Cause: Excel attempted to open the file but couldn't parse the X12 delimiter structure.

What's happening: Excel tried to interpret the file as CSV (comma-delimited) or TXT (tab-delimited), but found asterisks and tildes instead. It gave up and returned an error.

Error 3: File opens but shows one long line of gibberish text

Cause: Excel opened the file as plain text but didn't apply any delimiter parsing.

What you see:

ISA*00* *00* *ZZ*WALMART *ZZ*VENDOR *250120*1045*U*00401*000123456*0*P*~GS*PO*WALMART*VENDOR*20250120*1045*1*X*004010~ST*850*0001~BEG*00*SA*1234567890...

What's happening: Excel loaded the raw text but didn't recognize the ~ (segment terminator) as a line break delimiter. The entire file appears in cell A1 as one continuous string.

Error 4: "This file type is not supported in Protected View"

Cause: Excel's security feature (Protected View) blocks files from untrusted sources with non-standard formats.

What's happening: If you downloaded the EDI file from email or a web portal, Excel treats it as potentially unsafe and refuses to open it in Protected View. You can click "Enable Editing" but this won't fix the delimiter problem — you'll still see raw X12 text.

Workaround 1: Text to Columns (Manual Method)

If you need to view EDI data in Excel immediately without using a converter tool, you can manually import the file using Excel's Text Import Wizard and Text to Columns feature.

⏱️ Time Required: 5-10 minutes per file

Difficulty: Moderate (requires understanding of X12 segment structure)

Best for: One-time file viewing when you don't have access to conversion tools

Step-by-Step Instructions

1

Open the EDI file in Notepad (Windows) or TextEdit (Mac)

Right-click the .edi file → "Open with" → Notepad or TextEdit. You'll see raw X12 text.

2

Select all text and copy

Press Ctrl + A (Windows) or Cmd + A (Mac) to select all, then Ctrl + C or Cmd + C to copy.

3

Open a new Excel workbook

Launch Excel → New Blank Workbook

4

Paste into cell A1

Click cell A1, then press Ctrl + V or Cmd + V. The entire EDI file will appear as one long string in cell A1.

5

Select column A and open Text to Columns

Click the column A header to select the entire column → Go to Data tab → Click "Text to Columns"

6

Configure Text to Columns Wizard

Step 1 of 3: Select "Delimited" → Click Next

Step 2 of 3: Uncheck all preset delimiters (Tab, Comma, Space, etc.) → Check "Other" → Type * (asterisk) in the box → Click Next

Step 3 of 3: Leave column data format as "General" → Click Finish

7

Review the result

Each X12 element now appears in its own column. For example, BEG*00*SA*PO123 becomes three columns: BEG | 00 | SA | PO123

⚠️ Limitations of Text to Columns Method

  • Still shows raw segment codes (BEG, PO1, N1, etc.) — you need to know X12 structure to interpret
  • No automatic labeling of columns (you don't know if column D is "PO Number" or "Date" without consulting X12 specs)
  • Multiple segments mixed together (ISA, GS, ST, BEG, PO1 all in the same spreadsheet rows)
  • Must manually repeat this process for every EDI file you receive
  • Dates still in CCYYMMDD format (20250120 instead of "January 20, 2025")
  • No filtering or sorting by transaction type (850 PO vs 856 ASN)

What You'll See After Text to Columns:

ABCDEF
ISA00 00 ZZ
BEG00SA1234567890 20250120
PO11100EA15.99WE

Problem: You still need to manually interpret what these codes mean. BEG = Beginning Segment (PO info), PO1 = Purchase Order Baseline Item (line item details), but which column is the PO number? (It's column D in the BEG row, but you'd need to know that.)

Workaround 2: Convert to CSV (Recommended)

The fastest and most reliable way to get EDI data into Excel is to convert the EDI file to CSV format using an automated parser. This eliminates all manual delimiter work and provides human-readable column labels.

✅ Recommended Approach

Time Required: 30 seconds per file
Difficulty: Easy (no X12 knowledge required)
Best for: Regular EDI processing, multiple retailers, accurate data extraction

How PlainEDI Converts EDI to Excel-Ready CSV

1

Upload your EDI file

Go to PlainEDI Converter → Drag and drop your .edi, .x12, .txt, or .dat file

Supported files: Walmart, Target, Amazon, Home Depot, Lowe's, Costco, Best Buy, AutoZone, Albertsons, Kroger EDI files (850, 855, 856, 810, 820, 846, 997)

2

Preview instantly (free)

PlainEDI automatically detects the transaction type (850 PO, 856 ASN, etc.) and displays parsed data in 5 seconds. No account or login required for preview.

3

Download CSV with labeled columns

Click "Export to CSV" → Pay once ($9 single file, $39 for 10-pack, $99/month unlimited) → Download CSV with columns like:

  • PO Number, PO Date, Ship By Date
  • Item UPC, Vendor Item #, Quantity, Unit Price
  • Item Description (human-readable product name)
  • Ship To Name, Ship To Address, Ship To GLN
  • Department Number (Walmart/Target specific fields)
4

Open CSV in Excel

Double-click the CSV file → Opens directly in Excel with proper columns, no Text to Columns needed. Dates formatted as "January 20, 2025", prices formatted as currency, ready to use.

🎯 Example Transformation

Raw EDI (what Excel can't open):
BEG*00*SA*1234567890**20250120~PO1*1*100*EA*15.99*WE*UP*012345678901~PID*F****Men's T-Shirt Blue XL~

PlainEDI CSV Output (opens directly in Excel):

PO NumberPO DateLine #UPCQuantityUnitUnit PriceDescription
1234567890Jan 20, 20251012345678901100Each$15.99Men's T-Shirt Blue XL

Why This Method Is Better

  • No X12 knowledge required: Columns pre-labeled with plain English headers
  • Dates automatically formatted: CCYYMMDD converts to "January 25, 2025"
  • Retailer-specific parsing: Extracts Walmart MABD dates, Target TCIN, Home Depot OMS ID automatically
  • Works with all transaction types: 850 PO, 855 PO Ack, 856 ASN, 810 Invoice, 820 Payment, 846 Inventory, 997 FA
  • Handles 10+ retailers: Walmart, Target, Amazon, Home Depot, Lowe's, Costco, Best Buy, AutoZone, Albertsons, Kroger
  • Fast processing: 30 seconds vs 5-10 minutes manual Text to Columns
  • Accurate extraction: Deterministic parser with 100% accuracy (no AI guessing)

Pricing

$9
Single File
Try once, no commitment
$39
BEST VALUE
10-File Pack
$3.90 per file (save 57%)
$99
Unlimited/month
Process as many as needed
Try Free Preview Now →

Preview any file free before purchasing export

Understanding the X12 Delimiter Problem

To understand why Excel can't open EDI files, you need to understand how X12 delimiters work.

X12 Uses Three Types of Delimiters

DelimiterCharacterPurposeExcel Equivalent
Element Separator*Separates data fields within a segmentComma (,) in CSV
Segment Terminator~Marks the end of a segment (like a row)Line break (\n) in CSV
Subelement Separator:Separates composite elements (rare)No equivalent

Example EDI Segment Breakdown:

BEG*00*SA*1234567890**20250120~
  • BEG = Segment ID (Beginning Segment for Purchase Order)
  • * = Element separator
  • 00 = Element 1 (Transaction Set Purpose Code: 00 = Original)
  • * = Element separator
  • SA = Element 2 (PO Type: SA = Stand-Alone Order)
  • * = Element separator
  • 1234567890 = Element 3 (Purchase Order Number)
  • * = Element separator
  • (empty) = Element 4 (Release Number - not used)
  • * = Element separator
  • 20250120 = Element 5 (Date: January 20, 2025)
  • ~ = Segment terminator (end of BEG segment)

⚠️ Why Excel's "Open" Command Fails

When you use File → Open in Excel:

  1. Excel looks for commas (,) to separate columns — finds asterisks (*) instead
  2. Excel looks for line breaks (\n) to separate rows — finds tildes (~) instead (or no line breaks at all)
  3. Excel gives up and returns "file format not supported" error

Bottom line: Excel's automatic CSV detection doesn't recognize X12 delimiters. You must either manually configure Text to Columns (workaround 1) or convert to CSV first (workaround 2).

Common Problems & Fixes

Problem: Text to Columns creates 100+ columns

Cause: X12 files have varying numbers of elements per segment. Some segments (like ISA) have 16 elements, others (like BEG) have 5-6 elements.

Solution: This is normal. Excel creates enough columns to fit the widest segment. Ignore empty columns or filter/delete them. Alternatively, use PlainEDI to get organized CSV output with only relevant columns.

Problem: File extension changes from .edi to .txt but still won't open

Cause: Renaming the file extension doesn't change the delimiter structure inside the file.

Solution: Don't rename .edi to .txt expecting Excel to suddenly understand it. The content is still X12-formatted. Use Text to Columns or convert to CSV instead.

Problem: CSV opens in Excel but dates show as numbers (e.g., 20250120)

Cause: X12 uses CCYYMMDD date format (8-digit: 20250120 = January 20, 2025). Excel doesn't auto-convert this to date format.

Manual fix: Select the date column → Format Cells → Custom → Type 0000"-"00"-"00 to display as 2025-01-20, then convert to date format.

Automatic fix: PlainEDI converts dates to "January 20, 2025" format automatically in CSV output.

Problem: Leading zeros disappear (e.g., UPC 012345678901 becomes 12345678901)

Cause: Excel treats numbers with leading zeros as integers and drops the leading zeros.

Manual fix: Before opening CSV in Excel, right-click → Open With → Notepad → File → Save As → Save as .txt instead of .csv → Open in Excel using Data → From Text → Set column data type to "Text" for UPC columns.

Automatic fix: PlainEDI preserves leading zeros by formatting UPC columns as text in CSV output.

Problem: Excel crashes or freezes when opening large EDI files

Cause: EDI batch files can contain 100+ purchase orders in a single file. After Text to Columns, this creates 10,000+ rows with 50+ columns, overwhelming Excel.

Solution: Use PlainEDI, which automatically splits batch files into individual transactions and allows you to filter/export only the POs you need. Or split the EDI file in Notepad by searching for ST*850 (each occurrence starts a new PO).

Related Guides

Stop Fighting with Excel

Convert any EDI file to Excel-ready CSV in 30 seconds. No Text to Columns, no delimiter configuration, no X12 knowledge required. Just upload, preview, and download clean CSV.

Try Free EDI to CSV Converter →

Works with Walmart, Target, Amazon, Home Depot, Lowe's, Costco, Best Buy, AutoZone, Albertsons, Kroger