Foresight LabsA jacket, two journeys

Interactive tool · SDS & CLP

Free EU CLP UFI generator and checksum validator (no sign-up)

Free, browser-local EU CLP UFI generator and modulo-31 checksum validator with no sign-up or account required and zero server transmission of VAT or formulation numbers.

Published Reviewed 8 min read5 primary sources

Client-side ECHA Annex VIII tool

UFI generator and checksum validator

Generate or check a 16-character Unique Formula Identifier locally in your browser. Neither your VAT number nor your internal formulation number is sent to Foresight.

Company identifier
0 to 268,435,455

Generated UFI

FXR2-T0PE-600X-YYRP

Label print format: UFI: FXR2-T0PE-600X-YYRP

Calculated locally using ECHA's published base-31 specification (ECHA-19-H-08-EN). Remember that a UFI is not active until linked in an ECHA PCN dossier.

01

How ECHA's 16-character base-31 UFI algorithm works (and why it runs locally)

A Unique Formula Identifier (UFI) is not a random serial number issued by a central registry.

ECHA designed the UFI as a deterministic 16-character base-31 encoding defined in the ECHA UFI Developers Manual (ECHA-19-H-08-EN), allowing any company to generate valid codes offline while guaranteeing mathematical uniqueness per legal entity.

Because the generator above executes ECHA's exact bit-packing and modulo-31 checksum logic directly in your browser using JavaScript BigInt arithmetic, your VAT number, ECHA company key and formulation integers never leave your computer. Nothing is uploaded, stored or logged.

Anatomy of ECHA's 16-character base-31 UFI algorithm

Anatomy of ECHA's 16-character base-31 UFI algorithm
Algorithm stageBit / character structurePurpose & validation rule
1. Formulation number (28 bits)Whole integer from 0 to 268,435,455 (2^28 - 1)Identifies one distinct mixture composition inside your organisation's own numbering system.
2. Country group & VAT / company key (45 bits)4-bit country group code + 41-bit encoded payload (for groups 3 to 5, split into B country-code bits plus (41 - B) VAT number bits; for group 0, a 41-bit ECHA company key)Namespaces every formulation number to your legal entity so two companies using formulation number 42 never produce the same UFI.
3. Version bit (1 bit)Fixed to 0 in current ECHA specificationTotal payload is 74 bits (28 + 4 + 41 + 1), which fits inside 15 base-31 digits (31^15 > 2^74).
4. Character reorganisation (Table 2-4)Permutes the 15 base-31 payload characters across fixed positionsSpreads adjacent formulation numbers visually across the 16-character code so sequential formulas do not look almost identical on labels.
5. Weighted modulo-31 checksum (1 character)Leading character computed so weighted sum mod 31 equals 0Detects single-character typos and adjacent transpositions during emergency poison-centre calls and pre-print artwork checks.
Base-31 alphabet: 0123456789ACDEFGHJKMNPQRSTUVWXY (letters B, I, L, O and Z are omitted to prevent human reading errors).

02

Choosing between a VAT number and an ECHA company key

Every UFI requires a company identifier to guarantee global uniqueness. Most EU, EEA, Great Britain (GB) and Northern Ireland (XI) formulators use their VAT registration number because it is already stored in ERP systems and requires no extra registration step.

The algorithm converts the national VAT format into a compact numerical payload according to ECHA's Table 2-1 country-specific rules (including alphanumeric VAT formats for countries such as Ireland, France, Spain, Cyprus, Iceland and the UK, plus the Northern Ireland XI prefix).

Switzerland (CH) is excluded from ECHA's UFI Table 2-1 and rejected by this generator: Swiss formulators without an EU, EEA, GB or XI VAT number must use an ECHA company key for EU/EEA dossiers (Switzerland runs a separate ChemO UFI scheme domestically).

If your organisation does not hold a supported VAT number, or if a toll manufacturer wants to ring-fence a client's product codes without embedding its own VAT number, obtain an official ECHA company key (a 41-bit integer up to 2,199,023,255,551) via ECHA's Poison Centres portal.

Never invent a random string of digits as a company key; unissued keys risk colliding with another company's codes.

03

When CLP Annex VIII requires a new UFI versus a dossier update

Reprinting labels unnecessarily wastes packaging stock, while failing to mint a new UFI after a formula change puts outdated emergency composition data in front of poison-centre doctors. Follow the four Annex VIII triggers below consistently.

  • Component added, removed or substituted. Any addition, deletion or substitution of a mixture component (other than permitted Interchangeable Component Group substitutions or standard perfume/colouring rules under Annex VIII) requires a new UFI and an updated PCN dossier.
  • Concentration moves outside Annex VIII tolerance bands. If an ingredient's exact concentration changes beyond the allowed variation window in Annex VIII Part B Section 4.1 (or moves outside the submitted concentration range), mint a new formulation number and UFI.
  • Upstream MiM supplier issues a new UFI. When a raw-material supplier notifies a Mixture in Mixture (MiM) under a new UFI due to their own composition change, downstream formulators using that MiM must generate a new UFI and update their PCN.
  • Changes that only require a PCN update (same UFI). Adding a new trade name, updating packaging size or type, expanding into a new EU Member State, updating pH or classification without altering composition, or updating contact details keeps the existing UFI valid once the PCN dossier is updated.
04Worked example (verified ECHA Annex B test vectors)

Generating and validating ECHA-compliant UFIs from VAT and company keys

An Irish adhesives formulator holds VAT number IE9Z54321Y and assigns internal ERP formulation number 134217728 to a new epoxy hardener, while its non-EU parent affiliate uses ECHA company key 1828639338661 with formulation number 156920229 for a separate industrial resin.

  1. 1. Generate a VAT-based UFI locally

    The stewardship analyst enters VAT number IE9Z54321Y and formulation number 134217728 into the browser-based generator above.

    The local BigInt engine encodes the 28-bit formulation number, Ireland's country group and VAT payload, runs ECHA Table 2-4 character reorganisation and calculates the modulo-31 check character, returning GMTT-2SQN-6FDD-6TV1 (matching ECHA Annex B test vectors byte-for-byte).

  2. 2. Generate a company-key UFI for a non-EU entity

    For the non-EU affiliate without an EU VAT registration, the team enters ECHA company key 1828639338661 and formulation number 156920229 in company-key mode (country group 0).

    The browser computes NJC1-671A-UKF3-J0M8, encoding the 41-bit company key cleanly without exposing a national tax number.

  3. 3. Catch artwork transcription errors with the validator

    Before releasing container artwork to the printer, the artwork coordinator pastes the typed string from the proof into the validator tab.

    A single mistyped trailing digit (GMTT-2SQN-6FDD-6TV2) or an accidental letter O instead of zero (OMTT-2SQN-6FDD-6TV1) is caught immediately by the checksum and base-31 alphabet check.

  4. 4. Link generated UFIs to submitted ECHA PCN dossiers

    Stewardship submits both complete 100% composition PCN dossiers via the ECHA Submission Portal for Ireland, France and Germany before releasing labels for printing.

    Both printed codes now link directly to active emergency records in national poison centre databases.

Takeaway. Using deterministic local generation paired with pre-print validation eliminates transcription errors while keeping proprietary formulation numbers off external servers.

05

Six checks before printing a generated UFI on a label

Run these six checks before printing any generated UFI onto container artwork or SDS Section 1.1. A mathematically valid UFI code is legally meaningless until linked to an accepted ECHA Poison Centre Notification.

Six checks before printing a generated UFI on a label
CheckWhat a clear answer showsWarning sign
Confirm the UFI is submitted in an active PCN dossier
An accepted ECHA Submission Portal dossier linking that exact UFI to the 100% composition for every destination EU/EEA Member State.
Generating a UFI locally, printing 10,000 labels and planning to file the Poison Centre Notification later.
Keep an internal register mapping formulation numbers to recipes
A controlled ERP or stewardship sequence assigning one unique integer (0 to 268,435,455) per distinct Annex VIII composition under each VAT number or company key.
Allowing two product lines to reuse formulation number 1001 under the same VAT number, silently producing identical UFIs for different mixtures.
Check whether VAT number or ECHA company key fits your legal entity
A verified EU, EEA, GB or Northern Ireland (XI) VAT number formatted to ECHA Table 2-1 rules, or an official ECHA-issued company key obtained through ECHA's UFI Generator for entities without a supported VAT (including Swiss companies, as CH VAT numbers are excluded from ECHA's Table 2-1).
Inventing a random company key or typing a non-EU tax number into the VAT field.
Verify Annex VIII triggers for minting a new UFI
Change-control rules requiring a new formulation number and new UFI whenever components are added, deleted, substituted or moved outside Annex VIII tolerance bands, or when an upstream MiM UFI changes.
Changing an ingredient concentration beyond Annex VIII Part B Section 4.1 limits while keeping the old UFI on the label.
Validate label format and legibility before print sign-off
Exact uppercase 16-character string in four blocks of four preceded by 'UFI:', verified with the checksum validator above before artwork release.
Omitting the mandatory 'UFI:' prefix, dropping hyphens inconsistently or mistyping prohibited letters such as O, I, L, B or Z.
Align 1 January 2027 distributor and rebrander UFIs
Either confirmed upstream PCN coverage for all trade names and Member States, or a dedicated distributor PCN and UFI filed ahead of 1 January 2027 under Regulation (EU) 2024/2865.
Private-label resellers printing a supplier's UFI without checking whether the upstream PCN covers their brand name and target EU countries.

06

Common questions

Does Foresight store or transmit the VAT numbers or formulation numbers I enter into the UFI generator?

No. Every calculation in the interactive generator and validator above runs locally inside your browser using JavaScript BigInt arithmetic. Nothing you type (VAT numbers, ECHA company keys, formulation numbers or UFI codes) is sent over the network, logged or stored by Foresight. Even with the generated UFI code in public view on a product label, third parties cannot reverse-engineer your formulation composition because the UFI only encodes your numerical identifier and an opaque internal formulation integer.

Why does the UFI validator reject codes containing the letters B, I, L, O or Z?

No. ECHA's base-31 alphabet (0123456789ACDEFGHJKMNPQRSTUVWXY) intentionally excludes five ambiguous letters: B (confused with 8), I (confused with 1), L (confused with 1), O (confused with 0) and Z (confused with 2). If a printed UFI contains any of those five letters, it is automatically invalid and will fail checksum validation.

When should we use an ECHA company key instead of a company VAT number?

Use a valid European VAT number whenever your legal entity holds one supported by ECHA's country specifications. Use an ECHA company key (generated through ECHA's official portal) if you are a non-EU supplier without a supported EU VAT number, a toll-formulator separating client portfolios, or a business that prefers not to encode its VAT number inside the UFI payload.

When does a product change legally require generating a new UFI?

You must generate a new UFI and update the PCN dossier whenever a mixture's composition changes in ways defined in CLP Annex VIII Part B Section 4.1: adding, substituting or removing a component; changing a component's concentration beyond the statutory Annex VIII tolerance bands; or receiving a new UFI from a supplier for a Mixture in Mixture (MiM) used in your formula. Changing only the trade name, label colour or packaging size requires a PCN dossier update, not a new UFI.

If a UFI passes validation here, does that mean it is registered with EU poison centres?

No. Passing the 16-character format and modulo-31 checksum check proves only that the UFI string is syntactically valid under ECHA's mathematical specification. It does not check ECHA's confidential Poison Centre database to confirm whether a PCN dossier has actually been filed or accepted for your destination Member States.

Primary sources and vendor pages

Implemented directly from the ECHA UFI Developers Manual (ECHA-19-H-08-EN) including official Annex B verification vectors, alongside CLP Regulation (EC) No 1272/2008 Article 45, Annex VIII and Regulation (EU) 2024/2865 checked in December 2026.

Projects that do this work

Each Foresight project produces one defined deliverable, checked against primary legal text and kept current as rules change.

Test Foresight on your own products

Bring one product, one market and a live regulatory question. We will show you the output Foresight produces and the legal sources behind every claim.