UK Company Number Checker

A company number checker validates the eight-character format of a Companies House registration number and decodes its prefix into the jurisdiction and type of entity.

A UK company registration number is always eight characters: eight digits for a company registered in England and Wales, or a two-character prefix and six digits for everything else. SC is Scotland, NI is Northern Ireland, OC is a limited liability partnership in England and Wales, SO and NC are LLPs in Scotland and Northern Ireland, and Companies House documents around thirty more. The number is quoted with its leading zeros, and the commonest bug is a form or spreadsheet that strips them. This tool checks the shape, decodes the prefix, restores stripped zeros, and generates numbers in the right form for each jurisdiction.

Use cases

  • Business onboarding and KYB forms: Validate the company number field before calling the Companies House API, and reject impossible prefixes at once.
  • Cleaning spreadsheet data: Spot numbers that have lost their leading zeros in Excel and see the corrected eight-character form.
  • Test data for B2B flows: Company numbers in the right shape for England and Wales, Scotland, Northern Ireland and LLPs, to pair with a generated company name and address.

Frequently asked questions

Is a company number the same as a VAT number?

No. The company number is issued by Companies House on incorporation and never changes. A VAT number is issued by HMRC on VAT registration, which many companies never need. They are different lengths and are validated differently.

Why does my company number have only seven digits?

It has eight, and one of them is a leading zero that a spreadsheet or form has stripped. Store company numbers as text, never as a number.

Can I check whether a company exists here?

No. This is a format check. The Companies House register, and its free API, holds the name, status, officers and filings.

Companies House numbers explained

Eight characters, a dozen common prefixes, and the leading zeros everyone loses · 550 words

1. Always eight characters

A company registration number, also called a company number or CRN, is issued by Companies House when an entity is incorporated and never changes, even if the company renames itself. It is always eight characters. A company registered in England and Wales has eight digits, such as 02050399. Everything else has a two-character prefix and six digits: SC002180 is a Scottish company. The number is quoted with its leading zeros, and the single most common defect in company data is a number that has lost them, because a spreadsheet turned 02050399 into 2050399 on import. Store company numbers as text.

2. What the prefixes mean

SC is a company registered in Scotland and NI one registered in Northern Ireland; R0 followed by six digits is a Northern Irish company from before partition. OC, SO and NC are limited liability partnerships in England and Wales, Scotland and Northern Ireland respectively, and LP, SL and NL are limited partnerships in the same order. FC is an overseas company with a UK establishment. IP, SP and NP are industrial and provident societies, which include most co-operatives and credit unions. RC, SR and NR are Royal Charter bodies. Companies House documents around thirty-five prefixes in total in its URI customer guide, and the tool above lists all of them.

An entity's prefix tells you which register it sits on, which matters for the Companies House API and for knowing which law governs it, but it does not tell you whether the entity is active.

3. Not a VAT number, not a UTR

Three different numbers get called "the company number" in forms. The Companies House number is eight characters and public. The VAT registration number is nine digits, issued by HMRC only to VAT-registered businesses, and carries check digits. The Unique Taxpayer Reference is ten digits, issued by HMRC for corporation tax, and is confidential. A form should ask for the one it actually needs and validate it against that format; asking for "company number" and accepting anything is how VAT numbers end up in the company number column.

const COMPANY_NUMBER = /^(\d{8}|[A-Z][A-Z0-9]\d{6})$/;
const normalise = (value) => {
  const v = value.toUpperCase().replace(/\s/g, '');
  return /^\d{1,7}$/.test(v) ? v.padStart(8, '0') : v; // restore stripped zeros
};

4. Company numbers in test data

Companies House reserves no range for test data, and the number space is dense, so almost any eight-digit number belongs to a real company, past or present. That is fine for testing format handling, leading-zero preservation and prefix logic. It is not fine if your test environment calls the Companies House API with the number and acts on the result, because the result will be a real company. Mock the lookup, as you would any external registry, and generate a company name and address to go with the number rather than using the real ones.

More questions

Where do I find a company’s number?

On the Companies House register, which is free to search by name, and on the company’s own letterhead, website footer and invoices, where the Companies Act requires it to appear.

Do sole traders have a company number?

No. Only incorporated entities are registered at Companies House. A sole trader has a UTR for tax and possibly a VAT number, but no company number.

Why does the Companies House API reject a number that looks right?

Usually a stripped leading zero, a lower-case prefix, or a space. Normalise to eight upper-case characters with zeros restored before calling it.

Related tools