Setup Guide

How to import bank transactions into Margin via CSV

5 minutes · Bank CSV import · Transaction history

CSV import lets you bring in bank transactions that predate your Open Banking connection, or from banks that don't yet support Open Banking. Export from your bank, upload to Margin, and your historical records are complete.

When to use CSV import

Prefer automatic sync?

If your bank supports Open Banking, connecting it directly is easier and keeps transactions up to date automatically. See the Open Banking guide.

Step-by-step: importing a CSV

  1. 1
    Export transactions from your bank
    Log in to your bank's online banking. Go to your transaction history, select a date range (e.g. the current tax year), and download as CSV. See bank-specific instructions below.
  2. 2
    Open Banking Import in Margin
    In Margin, click Banking in the left sidebar, then click Import CSV (or go to Settings → Import → Bank CSV).
  3. 3
    Select your file
    Click Choose file and select the CSV you downloaded. Margin accepts .csv and .xlsx files up to 10MB.
  4. 4
    Map your columns
    Margin detects common bank formats automatically. If it doesn't recognise your file, use the dropdown menus to map which column is the Date, which is the Description, and which is the Amount.
  5. 5
    Review and import
    Margin shows a preview of the transactions. Check the dates and amounts look right, then click Import. Duplicate transactions (already in Margin) are skipped automatically.

How to export from common UK banks

Barclays

  1. Log in to Online Banking → select your account
  2. Click Transaction history → choose a date range
  3. Click Download → select CSV

HSBC

  1. Log in → select account → click Statement
  2. Choose your date range → click Export
  3. Select CSV format and download

Lloyds / Halifax

  1. Log in → click your account → Export transactions
  2. Select date range → choose Internet banking text/spreadsheet (CSV)

NatWest / RBS

  1. Log in → click your account → Download statements
  2. Choose date range and format → select CSV

Monzo

  1. Open the Monzo app → tap your account → tap the icon
  2. Select date range → tap Export CSV
  3. Share the CSV file to your computer

Starling Bank

  1. In the Starling app, go to your account → tap the menu
  2. Select Download statement → choose CSV

CSV format requirements

If you're creating or editing a CSV manually, Margin expects at minimum:

ColumnFormatExample
DateDD/MM/YYYY or YYYY-MM-DD15/04/2025 or 2025-04-15
DescriptionTextAmazon Marketplace
AmountNumber (negative = debit)-49.99 or 49.99

Example of a valid CSV row:

Date,Description,Amount 15/04/2025,Amazon Marketplace,-49.99 16/04/2025,Client payment - Invoice #12,850.00

Common questions

Will Margin import duplicate transactions?
No. Margin checks for duplicate transactions during import using the date, description, and amount. Transactions that are already in your account are skipped automatically.
My CSV has debit and credit in separate columns — will Margin handle this?
Yes. During the column mapping step, you can set separate "Debit" and "Credit" columns if your bank exports them this way. Margin combines them automatically.
Can I import from multiple banks?
Yes. Repeat the import process for each bank account. Margin keeps each account's transactions separate and correctly attributed.
How many transactions can I import at once?
Margin handles imports of up to 5,000 transactions per file. For larger datasets, split your export into multiple date ranges.
My bank only exports OFX or QIF — can I use those?
Margin currently supports CSV and XLSX only. You can convert OFX or QIF to CSV using a free online converter, or open it in Excel and save as CSV before importing.

Get your books up to date in minutes

Import your transaction history into Margin and start your MTD quarterly updates with complete records from day one.

Start free trial