Prepare a CSV import template for Xero
How to build and check a CSV file for import into Xero: what CSV/TSV conversion changes, where spreadsheets alter values, and which details to confirm.
A CSV import template for Xero is a plain-text file of rows and columns that Xero reads to create or update records in bulk, such as contacts, invoices or bank statement lines. Preparing one usually means taking data from a spreadsheet, an export from another system or a tab-separated (TSV) file, and converting it into a comma-separated file that Xero can read. This review covers what that conversion changes, where it can quietly damage your data, and how to check the result before importing.
Evidence gaps to be aware of
No confirmed documentation for this article covered Xero's current column headers, required fields, row or file size limits, accepted date formats, or how it handles byte-order marks and character encodings. These details can differ by import type and change over time. Treat anything Xero-specific here as something to verify against Xero's own import screen and help material, and against a small test import in your own organisation.
Is a converted CSV suitable for a Xero import?
Generally yes, provided the conversion only changes the delimiter and quoting, and leaves every value exactly as it was. The main benefit is speed: a correctly structured file can load many records at once instead of one by one. The decisive tradeoff is that CSV carries no data types, so a value that looks right in a spreadsheet can be written out differently, or read differently on import, without any warning.
Where Xero's import screen offers a downloadable template for the record type you need, start from that file rather than building headers from memory. Editing the file in a plain-text editor, or with a delimiter conversion tool that does not interpret values, is preferable when your data includes codes with leading zeros, long reference numbers, dates, or text that contains commas, quotes or line breaks. A spreadsheet is convenient for bulk editing, but it is the most common source of silent changes.
What the conversion actually changes
Converting between TSV and CSV changes the characters that separate fields, not the field contents. In TSV, a tab ends each field. In CSV, a comma does, so any value that itself contains a comma, a double quote or a line break must be wrapped in double quotes, and any double quote inside such a value is written twice. A correct converter adds that quoting on the way to CSV and removes it on the way back; the values themselves should be byte-for-byte identical.
The illustrative example below uses generic column names, not Xero's. The first block is TSV with tab separators; the second is the equivalent CSV.
Name Description Amount
Acme Supply Paper, A4 45.00
Lee "LJ" Jones Consulting 120.00
Name,Description,Amount
Acme Supply,"Paper, A4",45.00
"Lee ""LJ"" Jones",Consulting,120.00
In the CSV version, "Paper, A4" is quoted because of its comma, and the name containing quotation marks is wrapped in quotes with each inner quote doubled. The amounts are unchanged. If a tool splits "Paper, A4" into two columns or drops the inner quotes, it has changed the meaning of the row.
Stored values versus what a spreadsheet shows
A spreadsheet keeps three different things: the value you typed, the value it stores after interpreting your input, and the formatted version it displays. When it saves to CSV, it writes one of these as text, and which one depends on the application and settings. A cell showing 01/02/2026 may be stored as a date serial and exported in another format, and a column formatted to show two decimals may export more or fewer. Opening the saved file in a plain-text editor shows what Xero will actually receive.
| Data in the file | Common spreadsheet change | Effect on import |
| Codes with leading zeros, such as 00421 | Read as a number and saved as 421 | No longer matches the existing code |
| Long reference or account numbers | Shown or saved in scientific notation, or trailing digits lost | Reference becomes wrong or unreadable |
| Dates | Reinterpreted using the computer's regional format | Day and month may swap, or the date may be rejected |
| Amounts with currency symbols or thousands separators | Symbols and separators saved as part of the text | Value may fail to parse as a number |
| Negative amounts | Displayed in parentheses or with a trailing minus | Sign may be lost or rejected, depending on how the value is written |
| Text starting with = or + | Treated as a formula | Formula result or error saved instead of the text |
For US readers, the regional default is typically month-first dates, a period as the decimal separator and a comma for thousands. Whether Xero reads dates according to your organisation's settings, the file, or a fixed format was not confirmed in the available evidence, so check a few rows where day and month could be confused, such as 03/04, after a test import.
Character-level changes
Some changes are invisible in a spreadsheet but alter the stored characters. Curly quotes may replace straight ones, non-breaking spaces may come from pasted web content, and a byte-order mark may be added at the start of a file saved as UTF-8. A hidden character at the very start of the header row can stop the first column name from matching. Names or descriptions pasted from "fancy font" generators are not formatting at all: they are different Unicode characters that only resemble letters, so they will not match searches for the ordinary spelling and may display as boxes or be read oddly by screen readers. Keep import data in ordinary characters.
Will the file stay readable and usable after copying or sharing?
A CSV is plain text, so it has no styling to lose and can be read by any text editor or assistive technology that can open a text file. The practical risks come from the tools in between. Opening a shared CSV in a spreadsheet and saving it again can reapply every change in the table above, even if the sender's copy was correct. Pasting rows into email or chat can convert tabs to spaces or strip line breaks. Sharing the file itself, rather than pasted content, avoids most of this.
For people reviewing the data with a screen reader, a spreadsheet view with clear headers is usually easier to navigate than raw comma-separated text, but only for reading. Make edits in a way that does not reinterpret values, or recheck the saved file in a text editor afterwards. No scoped test of particular screen readers with Xero's import screens was available, so this is general guidance rather than a verified result.
A practical preparation sequence
- Start from the template offered on Xero's import screen for your record type, if one is available, and keep its header row unchanged.
- Copy your data in without changing column order or header wording.
- Format code, reference and number-like text columns as text before pasting, so leading zeros and long digits survive.
- Remove currency symbols and thousands separators from amounts unless the template indicates they are accepted.
- Save as CSV, and choose UTF-8 if your data includes accented or non-Latin characters.
- Open the saved file in a plain-text editor and check quoting, dates, codes and the first header cell.
- Import a few rows first, review what Xero created, then import the remainder.
Bottom line
Converting data into a CSV for Xero preserves meaning when the only changes are delimiters and correct quoting. The risk lies in spreadsheet interpretation and hidden characters, not in the CSV format itself. Build from Xero's own template where possible, verify the saved file as plain text, and confirm Xero-specific rules on columns, dates and encoding with a small test import before relying on the template for a full load.