The short answer

The Capital One file has 7 columns, dates written as YYYY-MM-DD and separate debit and credit columns. The CSV written for Xero has the columns Date,Amount,Payee,Description,Reference. So the date is rewritten as DD/MM/YYYY, the amount is written as one signed number, and the text columns are moved as in the table below.

Paid profile. The free manual column mapper works for any bank, this one included, but the free version writes only the first 25 converted rows of a file. The 9 USD one-time licence adds the ready-made Capital One profile (one of the 35 paid profiles) and removes the 25-row limit. The column table on this page is free to read and can be used to fill in the manual mapper.

Open the converter

The converter runs in your browser. Your file is not uploaded.

What the Capital One CSV looks like

Note kept with this layout in the profile data: The source comment writes the date as yyyy-mmm-dd and sets no explicit date-format rule; year-month-day order is certain, the month may be numeric or abbreviated, so the converter should accept both. Header names are taken from the comment and from the csv2ofx mapping ("Card No.", "Posted Date", "Debit", "Credit", "Description").

What Xero accepts

The file the converter writes for Xero: Date,Amount,Payee,Description,Reference
Xero columnRequired by XeroFilled from the Capital One file
Daterequiredcolumn 1 "Transaction Date"
Amountrequiredcolumn 7 "Credit" (positive) minus column 6 "Debit" (negative)
Payeeoptionalleft empty: the bank file has no payee column
Descriptionoptionalcolumn 4 "Description"
Referenceoptionalleft empty: the bank file has no reference column

From a web search excerpt of the vendor's help page (the page itself refuses automated reading; re-check it in a browser): "Show income as positive amounts and expenses as negative amounts using a negative sign in front of the amount or with brackets, for example -30.00 or (30.00)."

Column-by-column mapping

Every column of the Capital One file, left to right, and where it ends up in the Xero file.

ColumnHeader textWhat it holdsWhere it goes in the Xero file
1Transaction DateTransaction dateDate, rewritten as DD/MM/YYYY
2Posted DatePosting dateNot copied
3Card No.Account or card identifierNot copied
4DescriptionDescriptionDescription
5CategoryCategoryNot copied
6DebitMoney out (debit)Amount, as a negative number
7CreditMoney in (credit)Amount, as a positive number

Pitfalls for Capital One to Xero

Dates

Amounts and their direction

Other Xero import rules

Before and after: an invented example

Invented sample data. These four rows were made up for this page. They are not from a real Capital One export and hold no real account, name or balance.

The column headings are the header text the source prints.

Before: rows laid out like the Capital One file
1: Transaction Date2: Posted Date3: Card No.4: Description5: Category6: Debit7: Credit
2024-03-042024-03-050000COFFEE CORNER MAIN STEating out4.50
2024-03-052024-03-060000PAYROLL EXAMPLE COIncome2500.00
2024-03-072024-03-080000RENT MARCHHousing1234.56
2024-03-112024-03-120000REFUND EXAMPLE SHOPShopping15.25
After: the same rows as a Xero file (Date,Amount,Payee,Description,Reference)
DateAmountPayeeDescriptionReference
04/03/2024-4.50COFFEE CORNER MAIN ST
05/03/20242500.00PAYROLL EXAMPLE CO
07/03/2024-1234.56RENT MARCH
11/03/202415.25REFUND EXAMPLE SHOP

Do it by hand in a spreadsheet, free

These steps need no tool from this site. The cell references follow the column positions of the profile above; if your spreadsheet uses semicolons between formula arguments, replace the commas.

  1. Open the Capital One CSV in a spreadsheet program through its import dialog. Set the date column (column 1 "Transaction Date") to Text so the program does not reinterpret it, and leave the amount columns as numbers.
  2. Row 1 is the header and the transactions start in row 2.
  3. Date: rewrite column A from YYYY-MM-DD to DD/MM/YYYY (2024-03-04 becomes 04/03/2024). In a new column, for the first transaction: =MID(A2,9,2)&"/"&MID(A2,6,2)&"/"&MID(A2,1,4) This formula reads the date by character position, so it only works while the dates are text and every date has a two-digit day and month. Fill it down.
  4. Amounts: merge the two columns into one signed Amount, credit minus debit: =ABS(G2)-ABS(F2) An empty cell counts as zero. Money out comes out negative.
  5. Text columns: fill Payee (left empty: the bank file has no payee column); Description (from column 4 "Description"); Reference (left empty: the bank file has no reference column). Where several bank columns feed one column, join them with a separator such as " - ".
  6. Apply Xero's own rules from its help page: Only the Date and Amount fields are needed to create bank statement lines. Payee is recommended; if the payee is an existing contact, the name must match the contact name exactly to avoid duplicates.
  7. Keep only the new columns, put the header row Date,Amount,Payee,Description,Reference on top, save the sheet as a comma-separated CSV, and compare the dates, the direction of the amounts and the number of rows with your statement in Xero's import preview.

Or use the converter

Load the file, choose the Capital One profile in the bank list and the target Xero, read the preview, then download. The conversion runs locally in your browser: the file is not uploaded, and only the licence key is sent for unlocking.

Paid profile. The free manual column mapper works for any bank, this one included, but the free version writes only the first 25 converted rows of a file. The 9 USD one-time licence adds the ready-made Capital One profile (one of the 35 paid profiles) and removes the 25-row limit. The column table on this page is free to read and can be used to fill in the manual mapper.

Open the converter Licence terms

Where this layout comes from

No bank supplied or approved this layout. It was copied on 5 October 2026 from a public open-source importer file kept by volunteers: simonmichael/hledger, file examples/csv/banking/capital-one.csv.rules

Also read: reubano/csv2ofx, file csv2ofx/mappings/capitalone.py

The lines used from the source: # this is the format that capital one returns if you export data as .csv as of July 9 2022 ; # columns are Transaction Date in yyyy-mmm-dd, Posted Date, Card no., Description, Category, Debit, Credit ; fields date, posting-date, _, description, _, amount-out, amount-in

The Xero rules come from the vendor's own help pages: central.xero.com/s/article/Import-a-CSV-bank-statement (named as text, not linked). The official page refuses automated fetches (HTTP 403 or a script-only page), so the rules were read from web search excerpts of that same official URL on the checked date. Re-check in a browser before relying on a detail.

Bank formats change. Banks alter their CSV exports without notice and vendors change their import rules, so this mapping can be out of date. If the preview looks wrong, use the manual column mapper.

Related pages

Capital One to other apps

The Capital One guides for YNAB, QuickBooks Online and Wave, in the bank list

Other United States exports to Xero

All banks and apps