Prepare an orders CSV file

How to prepare an orders CSV or TSV file: what delimiter conversion changes, where spreadsheets alter data, and how to check the result before sharing.

An orders CSV is a plain-text file where each line is a record, such as one order or one line item, and each field is separated by a delimiter, usually a comma. Preparing one usually means cleaning an export from a store or order system, converting it between comma-separated and tab-separated formats, or reshaping it for another system's import. This review covers whether that kind of transformation keeps the data accurate and usable, and where it can fail. It does not test any specific converter, store platform or import destination, so check your destination's own import requirements before relying on these points.

Is converting or reformatting an orders file suitable for your use?

Converting an orders file between CSV and TSV, or cleaning it for import, is generally suitable when the receiving system expects a specific delimiter or layout and the conversion parses each field instead of doing a simple find-and-replace. The main benefit is interoperability: accounting, fulfillment and analytics tools often accept only one delimited format, and a correct conversion lets the same order data move between them without retyping.

The key tradeoff is that the delimiter character also appears inside real order data. Customer names, addresses and product descriptions often contain commas, quotation marks and sometimes line breaks. A tool that understands quoting handles these correctly. A tool that swaps every comma for a tab will silently split fields and shift values into the wrong columns.

Keep the file as untouched plain text, and avoid opening and re-saving it in a spreadsheet, when exact values matter more than convenience. Examples include order IDs, SKUs and postal codes with leading zeros, long numeric identifiers, and the original export kept as the record of what the source system produced. Keep that original unchanged and run transformations on a copy.

What the transformation actually changes

Delimiter conversion changes the stored characters in the file. Separators are replaced, quoting is added or removed as the target format requires, and depending on the tool, line endings and character encoding may change too. This is different from how a spreadsheet displays a CSV. A grid view is only a presentation of the text, and the file stays the same until you save it from that application. At that point the application writes its interpretation of the values, which may differ from the original text.

The terms involved are less precise than they sound. "CSV" is not one strict standard. RFC 4180 describes a common convention: fields containing commas, quotes or line breaks are wrapped in double quotes, and a quote inside a field is written as two quotes. Many programs differ in details, such as using semicolons where the comma is a decimal separator. "TSV" is even looser. Some tools quote fields, and others assume fields never contain tabs or line breaks.

The illustrative sample below is invented for demonstration and does not come from any real system. The first block is a CSV that follows the quoting convention above:

order_id,order_date,customer_name,sku,item_name,quantity,unit_price,currency,ship_zip
1001,2026-10-30,"Smith, Alex",00742,Notebook,2,14.50,USD,02134
1002,2026-10-30,Dana Lee,RUL-12,"12"" ruler",1,3.99,USD,94105
1003,2026-10-31,Ana Muñoz,00915,Pen set,1,5.25,USD,10001

A parser-based conversion to TSV, using a writer that does not quote fields, produces the following. The comma in "Smith, Alex" no longer needs protection, so the quotes are dropped. The doubled quote in the ruler name becomes a single quote character. Every row still has nine fields.

order_id	order_date	customer_name	sku	item_name	quantity	unit_price	currency	ship_zip
1001	2026-10-30	Smith, Alex	00742	Notebook	2	14.50	USD	02134
1002	2026-10-30	Dana Lee	RUL-12	12" ruler	1	3.99	USD	94105
1003	2026-10-31	Ana Muñoz	00915	Pen set	1	5.25	USD	10001

A naive comma-to-tab replacement on the same input would break row 1001 into ten fields, splitting "Smith" from "Alex". It would also leave the literal quote characters in place. Some TSV readers treat a field that begins with a quote as quoted, so a value like the ruler name can still be misread after a correct conversion. If your data contains quotes, confirm how the destination handles them.

Non-English text is another stored-character issue. A name like "Muñoz" can be stored as a single precomposed ñ or as n followed by a combining tilde. Both look identical, but they are different characters. That can affect searching, deduplication and matching against customer records. Saving in UTF-8 keeps the characters intact. Whether names need a consistent Unicode normalization form depends on what the destination compares against.

Preparing the file: field-by-field checks

Before converting, decide the grain of the file. Either one row per order with totals, or one row per line item with the order ID repeated. Mixing the two, for example by adding subtotal rows inside the data, breaks most imports. The table below lists common order fields, how they tend to go wrong, and a typical way to prepare each. Treat it as general guidance, not a destination specification.

Field | Common risk | Preparation
Order ID, SKU | Leading zeros dropped or long IDs shown in scientific notation when opened as numbers | Keep as text; import as text columns if a spreadsheet step is unavoidable
Order date | Ambiguous day/month order; automatic date conversion | Use one unambiguous format such as ISO 8601 (YYYY-MM-DD)
Prices and totals | Currency symbols, thousands separators or locale decimal commas | Plain decimal numbers with a separate currency column
Customer name, address | Embedded commas, quotes or line breaks | Rely on proper quoting; check multi-line address fields specifically
Postal code | Leading zeros lost | Treat as text
Any free-text field | Values starting with =, +, - or @ treated as formulas by spreadsheets | Review before opening in a spreadsheet; see the sharing section
Whole file | Mixed or unexpected encoding; inconsistent line endings | Save as UTF-8 and confirm whether the destination expects a byte-order mark
  • Keep exactly one header row with stable, unambiguous column names.
  • Remove blank rows, totals rows and notes that are not data.
  • Trim stray leading and trailing spaces from identifiers.
  • Use one row grain (order or line item) throughout.
  • Remove columns the recipient does not need, especially personal data.

Will the result stay readable and usable after copying or sharing?

Copying and pasting behave differently by format. Spreadsheet applications commonly split pasted tab-separated text into separate cells, while pasted comma-separated text often lands in a single column unless you run an import or text-to-columns step. This depends on the application and its settings and was not tested here, so try a few rows in your actual destination before pasting a full file.

The biggest compatibility risk is automatic type conversion when the file is opened in a spreadsheet. Leading zeros, long identifiers and date-like strings can be reinterpreted as numbers or dates on open. If the file is then saved, those changes become permanent in the text. When values must survive, use the application's import feature and set the affected columns to text instead of double-clicking the file.

Order data can include text supplied by customers, such as names, notes and addresses. A cell that begins with =, +, - or @ may be evaluated as a formula when the file is opened in a spreadsheet, which is a known injection risk. Common mitigations include prefixing such values with a single quote or escaping them before sharing. Be aware that this changes the stored value, so it suits files meant for human review better than files meant for machine import.

For accessibility, a raw CSV opened in a text editor is read by a screen reader as a continuous run of values and delimiters, with no column headers attached to each value. Opened in a spreadsheet or presented as an HTML table with marked-up headers, the same data is usually far easier to navigate. This review did not test specific assistive technologies. If people using screen readers need to review orders, providing a properly structured table view alongside the file is the safer choice.

For searching and editing, plain delimited text works well with text search and line-based tools, as long as no field contains a line break. A quoted multi-line address turns one record into several physical lines. That can mislead simple line counts, text searches and scripts that assume one record per line.

Order files usually contain names, addresses and sometimes contact details. Before uploading one to an online converter or sending it to a third party, consider what data you actually need to share. Do not assume from a tool's appearance or description that it does not store or log uploaded files. Look for an explicit privacy statement, or convert locally.

Checking the converted file before handing it off

  • Confirm the data row count matches the source, excluding the header.
  • Confirm every row has the same number of fields as the header.
  • Spot-check rows that contain commas, quotes, line breaks or non-ASCII characters.
  • Compare identifiers with leading zeros against the original text.
  • If possible, convert back to the original format and compare it with the source file.
  • Run a small test import into the destination before sending the full file.

Limits of this review

No specific converter, store export, spreadsheet version or import destination was examined for this article, and no measurements or test results are reported. The points above reflect general, widely documented behavior of delimited text and spreadsheet handling. Exact behavior around quoting, encoding, byte-order marks, paste handling and type conversion varies by tool and settings, so your destination's documentation and a small test import are the final authority.