Skip to content

CSV to EDI 850 Converter

Turn a CSV of order lines into a valid X12 850 purchase order in your browser. Map the columns, fix flagged rows, download the EDI.

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

Try a sample:

1. Load your order lines

One row per line item, with a header row. Rows that share a PO number become one purchase order.

Or paste CSV text

From CSV Columns to 850 Segments

Each PO number in your CSV becomes one ST/SE transaction set. The header fields go into BEG (PO number and date), DTM*002 (requested delivery) and the N1/N3/N4 ship-to loop. Every row becomes a PO1 line: quantity, unit of measure, unit price, then your item number under qualifier VN and the GS1 number under UP, EN or UK depending on its length, followed by a PID description. CTT01 counts the lines, and SE01, GE01 and IEA01 are counted for you.

CSV column850 element
PO NumberBEG03
PO DateBEG05
Delivery DateDTM*002
Ship To Name / IDN102 / N104 (N103 = 92)
Quantity, UOM, Unit PricePO102, PO103, PO104 (PO105 = PE)
Item NumberPO106 = VN, PO107
UPC / EAN / GTIN-14UP, EN or UK with the number
DescriptionPID05

Before You Send It

A valid 850 is not always an accepted one. Retailers add their own rules on top of X12: Walmart expects department numbers in REF*DP, some partners want a specific ISA qualifier instead of ZZ, and many test files must carry ISA15 = T. Check your partner's requirements on the retailer EDI compliance pages, then open the file in the EDI viewer and validator and pick the retailer under Validate for. Replace the placeholder sender and receiver IDs with the ISA IDs your partner gave you. The 850 purchase order guide explains every segment. Received a PO and need to answer it? Reply to a PO with an 855, 856 or 810.

When CSV Orders Become a Daily Job

A converter is fine for a test file or the odd order. When customers send orders as spreadsheets, PDFs and emails every day, OrderSync reads them as they arrive, checks each line against your catalog and pricing, and creates a clean order for your team to approve, with anything unusual flagged. See order processing automation or, for Excel files, the Excel to EDI converter. Orders that start life as XML, such as cXML or an ERP export, are covered in XML to EDI 850 mapping.

Frequently Asked Questions

How do I convert a CSV file to EDI?

Choose your CSV (or download the template and fill it in), check that each column is matched to the right 850 field, enter the sender and receiver IDs your trading partner gave you, and download the .x12 file. Rows that share a PO number become one purchase order.

What columns does the CSV need?

A quantity and either your item number or a UPC/EAN/GTIN on every row, plus a PO number column. If the file has no PO number column, type one PO number to use for every row. Optional columns add the PO date, description, unit of measure, unit price, ship-to name, location ID and address, and a requested delivery date. Header names are matched automatically and you can change any match. Title rows above the headers are left out, and you can pick the header row yourself.

Is the 850 valid X12?

Yes. The file is built with ISA, GS and ST envelopes, matching control numbers, a correct SE segment count and a CTT line count, and it is checked by the same validator as the EDI viewer before you download it. UPCs are check-digit tested. Your trading partner's implementation guide may still ask for extra segments, such as REF department numbers.

What happens to rows with mistakes?

They are skipped, and the result says so first: how many rows were skipped, then each one by row number with the reason, such as a missing PO number, a quantity that is not a number, or a UPC with no item number and a bad check digit. The 850 is built from the rest, so check the list before you send it.

Is my CSV uploaded?

No. The file is read and converted in your browser. Nothing is sent to OrderSync.

Can it create 810 invoices or 856 ship notices?

This page builds 850 purchase orders. To reply to a purchase order you received, paste it into the EDI Response Builder (ordersync.io/tools/edi-response-builder). It drafts the 855 acknowledgment, the 856 ship notice with SSCC carton numbers, and the 810 invoice.