Skip to content
On this page

Company numbers

Every company registered in the UK has a unique company number, which can be used to identify the company. This will remain the same regardless of changes to the details of the company such as company name.

Format

Company numbers are 8 character alphanumeric strings. The majority (~92%) of company numbers are purely numeric.

I've tested the below regex on a database of 13.6 million real company numbers, and they all match. It was sourced from a combination of looking at various documentation and also trial-and-error testing on the database of company numbers.

js
/^((AC|ZC|FC|GE|LP|OC|SE|SA|SZ|SF|GS|SL|SO|SC|ES|NA|NZ|NF|GN|NL|NC|R0|NI|EN|\d{2}|SG|FE)\d{5}(\d|C|R))|((RS|SO)\d{3}(\d{3}|\d{2}[WSRCZF]|\d(FI|RS|SA|IP|US|EN|AS)|CUS))|((NI|SL)\d{5}[\dA])|(OC(([\dP]{5}[CWERTB])|([\dP]{4}(OC|CU))))$/
/^((AC|ZC|FC|GE|LP|OC|SE|SA|SZ|SF|GS|SL|SO|SC|ES|NA|NZ|NF|GN|NL|NC|R0|NI|EN|\d{2}|SG|FE)\d{5}(\d|C|R))|((RS|SO)\d{3}(\d{3}|\d{2}[WSRCZF]|\d(FI|RS|SA|IP|US|EN|AS)|CUS))|((NI|SL)\d{5}[\dA])|(OC(([\dP]{5}[CWERTB])|([\dP]{4}(OC|CU))))$/

This is made up of "normal" companies, which end in 6 numeric digits:

js
/(AC|ZC|FC|GE|LP|OC|SE|SA|SZ|SF|GS|SL|SO|SC|ES|NA|NZ|NF|GN|NL|NC|R0|NI|EN|\d{2}|SG|FE)\d{5}(\d|C|R)/
/(AC|ZC|FC|GE|LP|OC|SE|SA|SZ|SF|GS|SL|SO|SC|ES|NA|NZ|NF|GN|NL|NC|R0|NI|EN|\d{2}|SG|FE)\d{5}(\d|C|R)/

Registered societies which are prefixed with RS and end in 0,1,2 or 3 alphabet letters:

js
/(RS|SO)\d{3}(\d{3}|\d{2}[WSRCZF]|\d(FI|RS|SA|IP|US|EN|AS)|CUS)/
/(RS|SO)\d{3}(\d{3}|\d{2}[WSRCZF]|\d(FI|RS|SA|IP|US|EN|AS)|CUS)/

And scottish limited partnerships and northern ireland companies which are prefixed with SL or NI and can optionally end in an A:

js
/(NI|SL)\d{5}[\dA]/
/(NI|SL)\d{5}[\dA]/

And england or wales LLPs which are prefixed with OC and can end in various alphabet letters:

js
/OC(([\dP]{5}[CWERTB])|([\dP]{4}(OC|CU)))/
/OC(([\dP]{5}[CWERTB])|([\dP]{4}(OC|CU)))/

Normalise

Sometimes leading zeros are omitted, so 00644831 is sometimes referred to as 644831. To normalise this shorthand, pad the start of a company number with zeros until its 8 characters long.

As some company numbers contain alphabet letters, these should be upper case.

Prefix meanings

The prefix indicates the company type and jurisdiction.

PrefixCompany TypeAdditionalExample
0-9England & Wales Company
ACAssurance Company for England & WalesAC000001
ZCUnregistered Companies (S 1043 - Not Cos Act) for England & WalesZC000011
FCOverseas CompanyFC000011
GEEuropean Economic Interest Grouping (EEIG) for England & WalesGE000001
LPLimited Partnership for England & WalesLP001682
OCLimited Liability Partnership for England & WalesCan contain P and end in 1 or 2 lettersOC300001
SEEuropean Company (Societas Europaea) for England & WalesSE000008
SAAssurance Company for ScotlandSA000038
SZUnregistered Companies (S 1043 Not Cos Act) for ScotlandSZ000001
SFOverseas Company regd in Scotland (pre 1/10/09)SF000109
GSEuropean Economic Interest Grouping (EEIG) for ScotlandGS000001
SLLimited Partnership for Scotlandsuffix can be ASL000001
SOLimited Liability Partnership for ScotlandSO300001
SCScottish CompanySC000053
ESEuropean Company (Societas Europaea) for Scotland
NAAssurance Company for Northern Ireland
NZUnregistered Companies (S 1043 Not Cos Act) for Northern Ireland
NFOverseas Company regd in Northern Ireland (pre 1/10/09)NF000006
GNEuropean Economic Interest Grouping (EEIG) for Northern Ireland
NLLimited Partnership for Northern IrelandNL000010
NCLimited Liability Partnership for Northern IrelandNC000001
R0Northern Ireland Company (pre partition)R0000001
NINorthern Ireland Company (post partition)suffix can be ANI000016
ENEuropean Company (Societas Europaea) for Northern Ireland
--------------------------------------------------------------------------------------
RSRegistered Societysuffix is 1 or 2 or 3 letters
SGScottish Partnership
SIInvestment Company with Variable Capital(Umbrella)
FEFurther Education and Sixth Form College Corps

Company numbers which Companies House does not hold details for:

PrefixCompany Type
IPIndustrial & Provident Company
SPScottish Industrial/Provident Company
ICICVC (Investment Company with Variable Capital)
SIScottish ICVC (Investment Company with Variable Capital)
NPNorthern Ireland Industrial/Provident Company or Credit Union
NVNorthern Ireland ICVC (Investment Company with Variable Capital)
RCRoyal Charter Companies (English/Wales)
SRScottish Royal Charter Companies
NRNorthern Ireland Royal Charter Companies
NONorthern Ireland Credit Union Industrial/Provident Society
--------------------------------------------------------------------------
CECharitable Incorporated Organisation
CSScottish Charitable Incorporated Organisation
PCProtected Cell Company