A company registration number is the unique identifier a government registry assigns to an incorporated business — like a UK Companies House number or a US Employer Identification Number (EIN). When building onboarding flows, KYC checks, or business directories you need realistic test values that match the expected format. This tool generates fictional, correctly-structured numbers for major jurisdictions. They are for demos and testing only and are not registered to any real company.
How it works
Each jurisdiction has its own structure, which the generator reproduces faithfully:
- UK Companies House — eight characters. England and Wales numbers are eight digits; Scotland and Northern Ireland use the prefixes
SCorNIfollowed by six digits. - US EIN — nine digits formatted
XX-XXXXXXX. The leading two digits are an IRS campus prefix, so the tool draws only from the published valid prefix ranges. - Germany (Handelsregister) — a court division code (
HRAfor partnerships orHRBfor limited companies) followed by a registration number.
The random parts are filled in locally and assembled into the correct layout for the chosen jurisdiction.
Tips and notes
- These values pass simple format checks but will never match a real registry lookup, which is exactly what you want for safe test data.
- Use the UK prefixed style (
SC/NI) when you need to test that your parser handles non-numeric company numbers. - Generate a batch to seed a database table or fill a CSV of fixtures in one go.
- Everything runs locally with no API call, so you can generate as many as you need.
Why format-correct test data matters
A common mistake in testing business-onboarding or KYC flows is to use placeholder strings like 12345678 or TEST001. These strings are structurally wrong for the field they occupy: a real UK Companies House validation would reject TEST001 at the first character, masking format-validation bugs you would only discover in staging when someone enters a Scottish company. Using structurally valid test data means format-validation logic is exercised on every test run.
A second reason is visual review: a form screenshot with 12345678 or ABC in the company number field looks like a prototype rather than a finished product. Correct-format values like SC482917 make UI screenshots and demo walkthroughs look polished.
Jurisdiction format reference
| Jurisdiction | Format | Example |
|---|---|---|
| UK (England & Wales) | 8 digits | 04835271 |
| UK (Scotland) | SC + 6 digits | SC482917 |
| UK (Northern Ireland) | NI + 6 digits | NI072341 |
| US EIN | XX-XXXXXXX (9 digits) | 47-2839104 |
| Germany (GmbH/AG) | HRB + number | HRB 182943 |
| Germany (partnerships) | HRA + number | HRA 29017 |
Not to be confused with
- VAT registration numbers — a separate identifier used for tax purposes (for example, UK VAT numbers follow a different format: GB + 9 digits). See the fake VAT number generator for those.
- D-U-N-S numbers — issued by Dun & Bradstreet, not a government registry.
- LEI (Legal Entity Identifier) — a 20-character ISO standard for financial market participants.