> For AI agents: the FileClerk index is at https://fileclerk.co.uk/llms.txt. Add .md to the address of any guide for its Markdown.

[Docs](https://fileclerk.co.uk/docs)

# Import a trial balance

Bring the figures in from a trial balance: the import, the account mapping and the export from each accounting package.

## Import from CSV, Excel or pasted text[#](#import "Copy the link to this section")

### Where it runs[#](#import-where "Copy the link to this section")

* MCP`import_trial_balance`
* REST`POST /api/v1/workspaces/{id}/drafts/{company}/{kind}/{period}/trial-balance`

Open the company's annual accounts form and choose Import a trial balance. Choose a CSV or Excel (.xlsx) file, or paste the rows from a spreadsheet, then choose Read trial balance. Use the trial balance in pounds sterling for the accounting period of the draft. The period must be open first.

The file needs an Account column and either Debit and Credit columns or one signed Balance column, with debits positive and credits negative. Rows above the heading row are left out, and reading stops at a row named Total, Totals or Grand total. An amount may have a £ sign, commas between thousands, brackets for a negative and at most 2 decimal places.

The trial balance must balance to the penny. If it does not, the import gives the difference and stops. An Excel workbook may hold more than one sheet, but exactly one sheet must hold a balanced trial balance.

An agent sends the trial balance as text or as an Excel workbook in base64, with a line for every row. The call writes the current-period figures into the saved draft and keeps every other value. If a row has no line, nothing is saved.

Limits: a file of up to 2 MB, up to 1,000 accounts, up to 5,000 rows on a worksheet and account names of up to 200 characters. FileClerk does not keep the trial balance itself. To make one by hand, see [Prepare a trial balance in a spreadsheet](https://fileclerk.co.uk/docs/accounts/trial-balance#spreadsheet).

## Review the account mapping[#](#review "Copy the link to this section")

### Where it runs[#](#review-where "Copy the link to this section")

* MCP`review_trial_balance`
* REST`POST /api/v1/workspaces/{id}/drafts/{company}/{kind}/{period}/trial-balance/review`
* REST`POST /api/v1/workspaces/{id}/drafts/{company}/{kind}/{period}/trial-balance/mapping.csv`

After the import, the review page lists each account with its debit or credit. Choose a category for each account: a line of the company's balance sheet or profit and loss account. The lines are those of the company's accounts form, so share capital is offered only to a company limited by shares, and members' capital only to an LLP.

Choose Apply mapping to fill the accounts form. Each line is rounded to whole pounds, and the profit for the period goes to retained earnings. Then check the figures on the form and save the draft: Apply mapping does not save it.

Apply mapping stops when an account has no category, when a line that cannot be negative is negative, or when the mapped balance sheet differs by more than £1 after rounding.

In the Console, Suggest categories can fill the empty categories. It sends only the account names and whether each is a debit or a credit to Anthropic, never the amounts, and the page says so before you use it. You check every category before you apply it. The API and MCP never suggest a category: the caller sends each line.

For an agent, the review saves nothing. It gives each account's category from the lines sent or the saved mapping, the accounts still without one, 50 accounts a page, and the figures when every account has a line.

## Download the mapping[#](#download "Copy the link to this section")

On the review page, Download mapping CSV gives the file trial-balance-mapping.csv. It has the columns Account, Debit, Credit, Category and Line, one row for each account, with the categories as chosen on the page, including the empty ones. Keep it with the working papers as the record of how each account was mapped.

The REST route gives the same file from the lines sent and the saved mapping, and saves nothing. The review tool gives the same rows to an agent.

On the import page, Export workspace mapping gives the company's saved mapping as a CSV with the columns Account, Balance, Category and Line. It holds no amounts.

## Saved mappings per company[#](#saved "Copy the link to this section")

### Where it runs[#](#saved-where "Copy the link to this section")

* MCP`get_trial_balance_mapping`
* MCP`change_trial_balance_mapping`
* REST`GET /api/v1/workspaces/{id}/companies/{company}/trial-balance-mapping`
* REST`POST /api/v1/workspaces/{id}/companies/{company}/trial-balance-mapping`

To keep the categories for next year, tick Save these reviewed categories for this company in the workspace before you choose Apply mapping. FileClerk saves each account's name and whether it is a debit or a credit, with its category, for that company in that workspace. It never saves an amount, and the mapping is stored encrypted.

On the next import for the company, each account that matches a saved name and side starts with its saved category. Review them before you apply. A match ignores capital letters and spaces at either end. When one trial balance maps the same name and side to two categories, that account is not saved.

To remove the mapping, open the import page, tick Confirm deletion of the workspace mapping and choose Delete workspace mapping. An agent can read the mapping, change or forget single accounts, or delete it. A change sends the revision it read, and a change to a mapping that changed since then is refused without a change.

Limits: up to 5,000 accounts in a company's mapping and up to 1,000 accounts in one change. The import tool for an agent does not save a mapping.

## Prior-year figures[#](#prior-year "Copy the link to this section")

When the accounts form opens, FileClerk reads the company's last accounts on the Companies House register and fills five prior-year figures: cash at bank and in hand, creditors due within one year, creditors due after one year, the average number of employees and turnover. It also sets the prior period start to the day after the year before ended. Type in the other comparatives: the register's totals are not the form's lines.

The figures come from the iXBRL of the filed accounts, from the prior-year column of the next year's iXBRL, or from a scanned PDF that FileClerk read and checked in code. A note on the form links to the filed accounts. A figure you change from the filed value is marked Changed from the filed accounts. If a draft already holds prior-year figures, the register figures are not used.

When the workspace has a saved accounts draft for the year before and this period has no draft, the form offers Create draft with prior-year figures. It copies every current-year figure of that draft, and whether the company was dormant, into the prior-year column of a new draft. Notes and approval details are not copied. Review the figures before you file.

## Export from Xero[#](#xero "Copy the link to this section")

### Export a trial balance from Xero[#](#xero-trial-balance-xero "Copy the link to this section")

Prepare a Xero trial balance for the accounts form.

#### Export the report[#](#xero-trial-balance-xero-export-the-report "Copy the link to this section")

In Reporting, open All reports and select Trial Balance. Set the reporting period, then choose Microsoft Excel from Export.

If the Excel export includes several reports, keep the Trial Balance sheet by itself. Keep Account, Debit and Credit for the period you are filing.

#### Apply the mapping in FileClerk[#](#xero-trial-balance-xero-apply-the-mapping-in-fileclerk "Copy the link to this section")

From the company’s Annual accounts card, open File these accounts and choose Import a trial balance. Upload the file, match each account to a category, then apply the mapping.

Import one accounting period at a time. If your export includes opening balances, movements and closing balances, use the closing figures for the period the accounts cover. Remove report headings, subtotals and the grand total so only the individual accounts are imported. Including a total as its own row can count the same figures twice.

Check which column the exporter uses for debits and credits. When the file has separate columns, keep the amounts in their own columns. When there is a single balance column, use positive amounts for debits and negative amounts for credits. Check that the currency is GBP before importing and leave the running total out of the file.

The import must balance before you can apply it. Review the figures and the reporting dates before generating the accounts preview.

Check any account you do not recognise against the original ledger before choosing a category. Compare the preview with the trial balance after applying the mapping. A balanced import checks that the debits and credits agree, while your review checks that the balances appear under the right headings and cover the right period.

### What FileClerk reads from Xero, and its limit[#](#xero-xero-import-limit "Copy the link to this section")

FileClerk has no live link to Xero. It reads one trial balance file of up to 5,000 rows, for one accounting period.

#### The limit[#](#xero-xero-import-limit-the-limit "Copy the link to this section")

FileClerk does not connect to Xero's ledger. You export the Trial Balance report to Excel and import the file, so the Xero side limits nothing but the period you pick.

A worksheet over 5,000 rows is refused with the message that it has too many rows. Keep the Trial Balance sheet by itself, and for one period only.

#### If the file is refused[#](#xero-xero-import-limit-if-the-file-is-refused "Copy the link to this section")

Remove other reports from the workbook, and report headings and totals from the sheet. The steps are in [Export a trial balance from Xero](https://fileclerk.co.uk/docs/accounts/trial-balance#xero-trial-balance-xero).

## Export from QuickBooks, FreeAgent, Sage Accounting, Wave or QuickFile[#](#exports "Copy the link to this section")

### Export a trial balance from QuickBooks[#](#exports-trial-balance-quickbooks "Copy the link to this section")

Prepare a QuickBooks trial balance for the accounts form.

#### Export the report[#](#exports-trial-balance-quickbooks-export-the-report "Copy the link to this section")

In QuickBooks Online, open Standard reports and find Trial Balance. Set the dates, choose the export control, and export to Excel.

Keep the account labels and the Debit and Credit columns. If your workbook contains other reports, use the Trial Balance worksheet.

#### Apply the mapping in FileClerk[#](#exports-trial-balance-quickbooks-apply-the-mapping-in-fileclerk "Copy the link to this section")

From the company’s Annual accounts card, open File these accounts and choose Import a trial balance. Upload the file, match each account to a category, then apply the mapping.

Import one accounting period at a time. If your export includes opening balances, movements and closing balances, use the closing figures for the period the accounts cover. Remove report headings, subtotals and the grand total so only the individual accounts are imported. Including a total as its own row can count the same figures twice.

Check which column the exporter uses for debits and credits. When the file has separate columns, keep the amounts in their own columns. When there is a single balance column, use positive amounts for debits and negative amounts for credits. Check that the currency is GBP before importing and leave the running total out of the file.

The import must balance before you can apply it. Review the figures and the reporting dates before generating the accounts preview.

Check any account you do not recognise against the original ledger before choosing a category. Compare the preview with the trial balance after applying the mapping. A balanced import checks that the debits and credits agree, while your review checks that the balances appear under the right headings and cover the right period.

### Export a trial balance from FreeAgent[#](#exports-trial-balance-freeagent "Copy the link to this section")

Prepare a FreeAgent trial balance for the accounts form.

#### Export the report[#](#exports-trial-balance-freeagent-export-the-report "Copy the link to this section")

Open Accounting, then Reports, then Trial Balance. Choose the reporting period and export the result as CSV.

Keep the account names and each closing balance. With a single Balance column, debits are positive and credits are negative.

#### Apply the mapping in FileClerk[#](#exports-trial-balance-freeagent-apply-the-mapping-in-fileclerk "Copy the link to this section")

From the company’s Annual accounts card, open File these accounts and choose Import a trial balance. Upload the file, match each account to a category, then apply the mapping.

Import one accounting period at a time. If your export includes opening balances, movements and closing balances, use the closing figures for the period the accounts cover. Remove report headings, subtotals and the grand total so only the individual accounts are imported. Including a total as its own row can count the same figures twice.

Check which column the exporter uses for debits and credits. When the file has separate columns, keep the amounts in their own columns. When there is a single balance column, use positive amounts for debits and negative amounts for credits. Check that the currency is GBP before importing and leave the running total out of the file.

The import must balance before you can apply it. Review the figures and the reporting dates before generating the accounts preview.

Check any account you do not recognise against the original ledger before choosing a category. Compare the preview with the trial balance after applying the mapping. A balanced import checks that the debits and credits agree, while your review checks that the balances appear under the right headings and cover the right period.

### Export a trial balance from Sage Accounting[#](#exports-trial-balance-sage "Copy the link to this section")

Prepare a Sage Accounting trial balance for the accounts form.

#### Export the report[#](#exports-trial-balance-sage-export-the-report "Copy the link to this section")

Open the Trial Balance report in Sage Accounting, set the dates, and export a CSV.

Use the nominal account description with the closing Debit and Credit columns. Leave out any other periods shown in the export.

#### Apply the mapping in FileClerk[#](#exports-trial-balance-sage-apply-the-mapping-in-fileclerk "Copy the link to this section")

From the company’s Annual accounts card, open File these accounts and choose Import a trial balance. Upload the file, match each account to a category, then apply the mapping.

Import one accounting period at a time. If your export includes opening balances, movements and closing balances, use the closing figures for the period the accounts cover. Remove report headings, subtotals and the grand total so only the individual accounts are imported. Including a total as its own row can count the same figures twice.

Check which column the exporter uses for debits and credits. When the file has separate columns, keep the amounts in their own columns. When there is a single balance column, use positive amounts for debits and negative amounts for credits. Check that the currency is GBP before importing and leave the running total out of the file.

The import must balance before you can apply it. Review the figures and the reporting dates before generating the accounts preview.

Check any account you do not recognise against the original ledger before choosing a category. Compare the preview with the trial balance after applying the mapping. A balanced import checks that the debits and credits agree, while your review checks that the balances appear under the right headings and cover the right period.

### Export a trial balance from Wave[#](#exports-trial-balance-wave "Copy the link to this section")

Prepare a Wave trial balance for the accounts form.

#### Export the report[#](#exports-trial-balance-wave-export-the-report "Copy the link to this section")

In the web version of Wave, open Reports and select Trial Balance. Filter to the filing period and use Export to download CSV.

Use your GBP ledger and keep Account, Debit and Credit. Do not import a file in a different currency as pounds.

#### Apply the mapping in FileClerk[#](#exports-trial-balance-wave-apply-the-mapping-in-fileclerk "Copy the link to this section")

From the company’s Annual accounts card, open File these accounts and choose Import a trial balance. Upload the file, match each account to a category, then apply the mapping.

Import one accounting period at a time. If your export includes opening balances, movements and closing balances, use the closing figures for the period the accounts cover. Remove report headings, subtotals and the grand total so only the individual accounts are imported. Including a total as its own row can count the same figures twice.

Check which column the exporter uses for debits and credits. When the file has separate columns, keep the amounts in their own columns. When there is a single balance column, use positive amounts for debits and negative amounts for credits. Check that the currency is GBP before importing and leave the running total out of the file.

The import must balance before you can apply it. Review the figures and the reporting dates before generating the accounts preview.

Check any account you do not recognise against the original ledger before choosing a category. Compare the preview with the trial balance after applying the mapping. A balanced import checks that the debits and credits agree, while your review checks that the balances appear under the right headings and cover the right period.

### Export a trial balance from QuickFile[#](#exports-trial-balance-quickfile "Copy the link to this section")

Prepare a QuickFile trial balance for the accounts form.

#### Export the report[#](#exports-trial-balance-quickfile-export-the-report "Copy the link to this section")

Choose Reports, then Trial Balance. Set the custom dates or select the relevant year, and export to CSV.

Use closing balances for the period. If the export separates closing debits and credits, keep those two columns and the account description. Leave out brought-forward and movement columns.

#### Apply the mapping in FileClerk[#](#exports-trial-balance-quickfile-apply-the-mapping-in-fileclerk "Copy the link to this section")

From the company’s Annual accounts card, open File these accounts and choose Import a trial balance. Upload the file, match each account to a category, then apply the mapping.

Import one accounting period at a time. If your export includes opening balances, movements and closing balances, use the closing figures for the period the accounts cover. Remove report headings, subtotals and the grand total so only the individual accounts are imported. Including a total as its own row can count the same figures twice.

Check which column the exporter uses for debits and credits. When the file has separate columns, keep the amounts in their own columns. When there is a single balance column, use positive amounts for debits and negative amounts for credits. Check that the currency is GBP before importing and leave the running total out of the file.

The import must balance before you can apply it. Review the figures and the reporting dates before generating the accounts preview.

Check any account you do not recognise against the original ledger before choosing a category. Compare the preview with the trial balance after applying the mapping. A balanced import checks that the debits and credits agree, while your review checks that the balances appear under the right headings and cover the right period.

## Prepare one in a spreadsheet[#](#spreadsheet "Copy the link to this section")

Set up account headings and signed amounts for a CSV, Excel or pasted table.

### Set up the columns[#](#spreadsheet-set-up-the-columns "Copy the link to this section")

Use Account, Debit and Credit with one row per account. A single Balance column also works when debits are positive and credits are negative. Enter GBP amounts to two decimal places.

Keep only the sheet for the accounting period you are filing. Save it as CSV or XLSX, or copy the header and data rows into the paste field.

### Apply the mapping in FileClerk[#](#spreadsheet-apply-the-mapping-in-fileclerk "Copy the link to this section")

From the company’s Annual accounts card, open File these accounts and choose Import a trial balance. Upload the file, match each account to a category, then apply the mapping.

Import one accounting period at a time. If your export includes opening balances, movements and closing balances, use the closing figures for the period the accounts cover. Remove report headings, subtotals and the grand total so only the individual accounts are imported. Including a total as its own row can count the same figures twice.

Check which column the exporter uses for debits and credits. When the file has separate columns, keep the amounts in their own columns. When there is a single balance column, use positive amounts for debits and negative amounts for credits. Check that the currency is GBP before importing and leave the running total out of the file.

The import must balance before you can apply it. Review the figures and the reporting dates before generating the accounts preview.

Check any account you do not recognise against the original ledger before choosing a category. Compare the preview with the trial balance after applying the mapping. A balanced import checks that the debits and credits agree, while your review checks that the balances appear under the right headings and cover the right period.

## Sources[#](#sources "Copy the link to this section")

Checked 27 November 2026

* [Xero: Export or print a report](https://central.xero.com/0/article/Export-or-print-a-report)
* [QuickBooks reporting guide](https://quickbooks.intuit.com/learn-support/en-uk/help-article/report-management/export-reports-excel-quickbooks-online/L7iAoP97n%5FGB%5Fen%5FGB)
* [FreeAgent reporting guide](https://support.freeagent.com/hc/en-gb/articles/115001222384-Trial-Balance-report)
* [Sage Accounting reporting guide](https://gb-kb.sage.com/portal/app/portlets/results/viewsolution.jsp?solutionid=222001000101138&view=print)
* [Wave reporting guide](https://support.waveapps.com/hc/en-us/articles/38992690179860-View-and-understand-your-trial-balance-report)
* [QuickFile reporting guide](https://support.quickfile.co.uk/t/trial-balance-report/9590)
* [Companies House guidance on preparing annual accounts](https://www.gov.uk/government/publications/filing-your-companies-house-accounts/life-of-a-company-part-1-accounts)
