Skip to content
IxbrlSheet

Export tagged figures from UK Companies House accounts (inline XBRL) to one table — Step-by-step guide

Drop the .html accounts files from a Companies House bulk download, a ZIP of them, or a folder, and get one CSV with one row per company: number, name, period and the common figures. A second CSV lists every tagged fact with its scale and sign applied. Scanned PDF files are listed, not read. Nothing is uploaded.

What the sample produces

The sample is a ZIP of synthetic accounts written by a script, in the shape of Companies House files. The check compares every common figure, and the scale, sign and dimension of each fact, with hand-written values, and a second reader in Python recomputes every figure without dimensions. It was also run on five public Companies House files, where the figures match the numbers printed on the page.

Rows
3, one per accounts file
Columns
12: file, company, name, period, six figures and the fact count
Reported, not read
2: a page with no tags and a PDF

How to use it

  1. Choose the accounts .html files, a ZIP of them (such as a Companies House daily bulk file), or a folder. Files from different years can be mixed.
  2. Check the preview: the number of files read, the rows in the table, and the files that were not read, with the reason, such as a scanned PDF.
  3. Download the two CSV files and open them in Excel or Google Sheets. The files are UTF-8 with a byte order mark, so accents display correctly.

Supported files

Reads inline XBRL (.html or .xhtml with ix: tags) and the facts in it: each numeric ix:nonFraction fact with its scale, sign, format and decimals, and each ix:nonNumeric text fact. Concepts are matched by local name, so the prefix a filing uses does not matter. The wide table shows the common figures (turnover, profit or loss, net assets, cash, creditors and employees) for the current period, using facts with no dimensions; a figure split by a dimension, or not tagged, is an empty cell and stays in the long table. Micro-entity accounts often have no turnover. PDF scans and files with no inline XBRL tags are listed in the report and not read, and so is a file with broken markup. Up to 2,000 files and 256 MB per run; one file up to 20 MB. Tested on five public Companies House filings checked by hand, and on a synthetic sample.

Open IxbrlSheet

Compare IxbrlSheet with alternatives