Chemical identifier
A chemical identifier is a code or string of characters that labels one chemical substance, so that people and computers can tell exactly which substance is meant. Databases, safety data sheets, food labels, shipping papers, and laws use identifiers because ordinary names are often unclear. Identifiers are a basic tool of chemistry and cheminformatics.
There are two main kinds:
- Registry identifiers are numbers that an organization assigns and records in a list, such as the CAS Registry Number 58-08-2 for caffeine.
- Structure-based identifiers are strings that a computer program works out from the molecule's structure, such as SMILES and the International Chemical Identifier (InChI).
Why names are not enough
Many names for one substance
One substance can be described in many ways. CAS lists these among them:[1]
- molecular formulas
- chemical structures
- generic names
- systematic names
- common names
- trade names
Caffeine, for example, also has the systematic name 1,3,7-trimethylpurine-2,6-dione.[2]
Problems with systematic names
Systematic names from chemical nomenclature are hard to use correctly. The rules set by IUPAC and CAS are hard to learn even for professional chemists, and misreading them can give an unclear name.[3]
The names also tend to be long and full of punctuation. This makes them a poor fit for computers and the internet.[3]
What identifiers add
An identifier gives a substance one agreed label. It works across regions and languages and lets databases link all the information about one substance.[1]
Two kinds of identifier
The developers of InChI sort identifiers into two families by how they are made.[3]
- Registry identifiers are assigned by an authority, usually the keeper of a collection of substances. To learn which substance a number means, you look it up in that authority's registry.[3]
- Structure-based identifiers are computed from the structure by an algorithm. Canonical forms are designed so that the same compound gives the same identifier however its structure was drawn. InChI meets this with one fixed algorithm, while canonical SMILES vary between programs.[4][5][6]
Some structure-based identifiers are hashed forms. A hashed form is a short code of fixed size made from a longer string by a hash function, such as the InChIKey made from an InChI.[3]
| Registry identifier | Structure-based identifier | |
|---|---|---|
| How it is made | Assigned by an authority | Computed from the structure |
| How to decode it | Look it up in the registry | Read it with software (except hashed forms such as the InChIKey) |
| New or imagined substances | Only after registration; an imagined structure cannot be registered[3] | Yes, once a structure is drawn |
| Substances without one defined structure | Possible, if the registry accepts them[7] | Poorly suited[8] |
| Examples | CAS RN, EC number, UN number, E number, UNII, PubChem CID (the number PubChem gives a compound record) | SMILES, InChI, InChIKey |
The figure below uses SHA-256, a standard hash function that turns data of any length into a fixed-size code.[9]
Registry numbers
Registry numbers differ mainly in who issues them and what they are for.
| Identifier | Issued by | Main use | Format | Example |
|---|---|---|---|---|
| CAS Registry Number | Chemical Abstracts Service | Indexing the chemical literature | Up to 10 digits in three parts | 58-08-2 (caffeine)[10] |
| EC number | European Union (EC Inventory) | EU chemical regulation | Seven digits, XXX-XXX-X | 200-362-1 (caffeine)[11] |
| UN number | United Nations (Model Regulations) | Transport of dangerous goods | Four digits | UN 1789 (hydrochloric acid)[12] |
| E number | European Union | Food additives on labels | E plus a number | E 415 (xanthan gum)[13] |
| UNII | US Food and Drug Administration | Ingredients of regulated products | Letters and digits | 3G6A5W338E (caffeine)[14] |
| PubChem CID | PubChem | Database record for one structure | Whole number | 2519 (caffeine)[2] |
CAS Registry Number
The CAS Registry Number (CAS RN) is assigned by Chemical Abstracts Service (CAS), a division of the American Chemical Society.[15] A substance gets a number when it enters the CAS REGISTRY database, either from literature that CAS indexes or on request.[1]
Numbers are given out one after another.[1] A higher number therefore usually means the substance was added more recently.[16]
A CAS RN has up to 10 digits in three parts separated by hyphens. The first part has 2 to 7 digits, the second has 2 digits, and the last is a single check digit.[17]
The number itself holds no structural information. It only means something when looked up in the CAS database.[9]
CAS check digit
The check digit is computed from the other digits. It lets anyone check whether a number is valid without consulting the registry.[17][18] The steps are:[19][18]
- Take the digits before the check digit.
- Multiply them from right to left by 1, 2, 3, and so on.
- Add the products.
- Keep the remainder after dividing by 10.
Here is the check digit and is the number of digits before it. is the digit just left of the check digit, the next one to the left, and so on. The operation keeps only the remainder after dividing by 10, which is the last digit of the sum.
For caffeine, 58-08-2, the digits before the check digit are 5, 8, 0, 8. Working from the right, . The last digit of 52 is 2, which matches the check digit.
EC number
The European Community number (EC number) is the official number of a substance within the European Union.[20] It has seven digits in the pattern XXX-XXX-X.[20] It comes from three lists that together form the EC Inventory, published by the European Chemicals Agency (ECHA).[21]
- EINECS lists substances considered to be on the European Community market between 1 January 1971 and 18 September 1981. Its numbers start at 200-001-8.[20][21]
- ELINCS lists new substances notified under EU law that came on the market after 18 September 1981. Its numbers start at 400-010-9.[20][21]
- The No-Longer Polymers (NLP) list holds substances that stopped counting as polymers when the definition changed in 1992, and that were on the market between 18 September 1981 and 31 October 1993. Its numbers start at 500-001-0.[20][21]
UN number
A UN number is a four-digit number that identifies dangerous goods for transport.[12] The numbers are set out in the UN Recommendations on the Transport of Dangerous Goods, Model Regulations.[12]
Some goods have their own number, such as UN 1789 for hydrochloric acid. Groups of similar products share one, such as UN 1993 for flammable liquids "not otherwise specified".[12] Looking up the number gives what is needed to ship the goods safely, including the proper shipping name, hazard class, packing group, and packaging rules.[12]
E number
In the European Union, every food additive is identified by an E number, and its safety is checked before it may be used in food.[13] More than 300 substances are approved as food additives in the EU.[13] Labels must state each additive's function and the substance, either by E number or by name, as in "E 415" or "xanthan gum".[13]
An E number can cover a small group of related substances. E 170, for example, covers both calcium carbonate and calcium hydrogen carbonate.[22]
Unique Ingredient Identifier
The Unique Ingredient Identifier (UNII) is generated by the US Food and Drug Administration (FDA). It covers substances in drugs, biologics (medicines made from living sources), foods, cosmetics, dietary supplements, tobacco products, and devices.[7]
A UNII is a free code of letters and digits with no built-in meaning. It is based on a substance's defining properties under the ISO 11238 standard, and it stays the same even when its substance record is corrected.[7]
ISO 11238 defines six types of substance:[7]
- chemicals
- proteins
- nucleic acids, molecules such as DNA
- polymers, substances made of repeating units
- mixtures
- structurally diverse materials, such as some natural products
UNIIs can therefore label substances that have no single structure, such as a specific foam made of water, air, glycerin, and a cellulose thickener.[7] UNIIs are generated by the Global Substance Registration System (GSRS), software developed by the FDA and the US National Center for Advancing Translational Sciences.[7]
Database record numbers
Large chemical databases give each record its own number, such as the CID in PubChem and the identifiers in ChemSpider.[3] PubChem stores "Substance" records as sent in by many submitters. From these it creates "Compound" records, each holding one unique structure made consistent by standard rules, which may gather many submitted records.[8]
Line notations
A line notation writes a molecule's structure as one line of printable characters.[5] Because the string is built from the structure, software can read it back into a structure. Two widely used line notations are SMILES and InChI.
SMILES
SMILES (Simplified Molecular Input Line Entry System) was started by David Weininger at the US Environmental Protection Agency's Environmental Research Laboratory in Duluth, Minnesota, and finished at Pomona College.[5] Weininger published its rules in 1988.[5] The basic rules are:[5]
- Atoms are written by their element symbols. B, C, N, O, P, S, F, Cl, Br, and I can be written bare, with hydrogens implied by their normal valence (the usual number of bonds an atom forms). Other elements, and any atom with a charge or an unusual number of hydrogens, go in square brackets, such as
[Fe+3]. - Single bonds are usually left out. A double bond is
=and a triple bond is#. - Branches go in parentheses, as in acetic acid,
CC(=O)O. - A ring is written by breaking one bond and marking both ends with the same digit, as in cyclohexane,
C1CCCCC1. - Atoms in aromatic rings are written in lowercase, as in benzene,
c1ccccc1. - Parts that are not bonded to each other, such as the ions of a salt, are separated by a period.
One molecule can be written as many valid SMILES. Ethanol can be written OCC, C(O)C, or CCO, among others.[5] A canonicalization algorithm picks one of these as the "unique SMILES", so that one molecule always gets one string.[5] Different software toolkits use different canonicalization rules, however, so the "canonical" SMILES of one molecule can differ between programs.[6]
Isomeric SMILES are SMILES that add details about isotopes and the 3D arrangement of atoms. They can mark:[5]
- isotopes
- the arrangement around double bonds, with
/and\ - the handedness of chiral centres, with
@and@@
SMILES always writes one exact tautomer (tautomers are forms of a molecule that differ only in where a hydrogen atom sits). It has no notation for hydrogens that can move between positions.[5]
InChI
InChI is a project of IUPAC. Most of its algorithm and software were developed at the US National Institute of Standards and Technology (NIST).[4] It is computed only from the structure, in a way designed not to depend on how the structure was drawn.[4]
An InChI is built from layers separated by slashes. Each layer holds one class of structural information, ordered from basic connections toward finer detail.[4] The six layer types are:[4]
- Main layer, with the formula, the connections between atoms, and the hydrogen atoms[3]
- Charge layer
- Stereochemical layer, for 3D arrangement (stereochemistry)
- Isotopic layer
- Fixed-hydrogen layer, which tells tautomers apart
- Reconnected layer, which keeps bonds to metal atoms[3]
Standard InChI always uses the same settings, so that identifiers made by different users match.[4][23] It begins with InChI=1S/ and leaves out the fixed-hydrogen and reconnected layers.[4] The Standard InChI of caffeine is InChI=1S/C8H10N4O2/c1-10-4-9-6-5(10)7(13)12(3)8(14)11(6)2/h4H,1-3H3.[2]
InChIKey
Full InChI strings can be long. In one set of about 10 million records, the average length was 146 characters.[4] Web search engines handled such strings badly, so the InChIKey was created as a short form for searching and indexing.[9]
The InChIKey is made from a SHA-256 hash of the InChI string.[9] It is always 27 characters long, made of uppercase letters and hyphens.[3] Its parts are:[3]
- First block, 14 characters: the core structure (formula, connections, hydrogen positions).
- Second block, 8 characters: other features such as stereochemistry, isotopes, and bonds to metals. Two letters follow, a flag (S for standard, N for non-standard) and a version letter (A for version 1).
- Last character: a protonation flag, which records whether hydrogen ions have been added to or removed from the molecule. N means neutral, with none added or removed.
Hashing has two costs. First, an InChIKey cannot be turned back into a structure, so it only works as a lookup key.[3]
Second, two different inputs can give the same key, called a collision. This is unavoidable in principle when long strings are squeezed into short codes.[3]
Comparing SMILES, InChI, and InChIKey
| SMILES | Standard InChI | Standard InChIKey | |
|---|---|---|---|
| Defined by | Weininger's rules, as built into many programs | IUPAC standard, software from the InChI Trust | Derived from Standard InChI |
| Canonical form | Depends on the software[6] | One fixed algorithm[4] | Follows its InChI |
| Length | Grows with the molecule | Grows with the molecule | Always 27 characters[3] |
| Back to a structure | Yes[5] | Yes[3] | No[3] |
| Tautomers | Writes one exact form[5] | Some tautomers merged, since the fixed-hydrogen layer is left out[4] | Follows its InChI[3] |
One substance, many identifiers
A single common substance usually carries identifiers of both kinds. The table lists several for caffeine.
| Identifier | Value for caffeine |
|---|---|
| CAS Registry Number | 58-08-2[10] |
| EC number | 200-362-1[11] |
| UNII | 3G6A5W338E[14] |
| PubChem CID | 2519[2] |
| SMILES (as given by PubChem) | CN1C=NC2=C1C(=O)N(C(=O)N2C)C[2] |
| Standard InChI | InChI=1S/C8H10N4O2/c1-10-4-9-6-5(10)7(13)12(3)8(14)11(6)2/h4H,1-3H3[2] |
| Standard InChIKey | RYYVLZVUVIJVGH-UHFFFAOYSA-N[2] |
Limitations
Many-to-many links
In practice, identifiers and substances do not match one to one. In the FDA's public GSRS data released in July 2020, 4,296 substances referred to more than one registry number, and carnitine chloride had ten.[7] In the other direction, 503 registry numbers pointed to several substances.[7]
This often happens when a general number is used for a family of specific substances. The CAS number 25322-68-3 for polyethylene glycol, for instance, was linked to 52 different substances with specific chain lengths.[7]
Water content causes a similar split. An anhydrous form of a substance contains no water, while a hydrated form has water bound into it. An EINECS entry covers both forms, while CAS often gives them different numbers.[20]
Limits of structure-based identifiers
Shared and multiple keys
Structure-based identifiers depend on how a structure is modelled. Of 73,122 chemicals in the GSRS data, 5,617 had two or more InChIKeys for the same substance, and 1,244 InChIKeys were shared by two or more substances.[7] Different tautomers of one compound can give different keys.[7]
Mirror-image forms
A racemic mixture is an equal mix of the two mirror-image forms of a chiral molecule. Absolute configuration means which of the two forms a molecule is. A chiral substance whose absolute configuration is unknown can appear to have the same InChI as the racemic mixture.[7]
Merged distinctions
The standard forms also merge some distinctions on purpose. The Standard InChIKey does not tell some tautomers apart, and different protonation states of one compound differ only in the last character.[3] A zwitterion is a molecule that carries both a positive and a negative charge with no net charge, and the neutral and zwitterionic forms of the same molecule get the same Standard InChIKey.[3]
Coverage and access
Each approach leaves gaps. No registry holds every known substance, none can hold a substance that has only been imagined, and some registries charge for lookups or limit access.[3] Structure-based identifiers need a defined structure, so a PubChem record for something like a tea extract may have no derived compound at all.[8]
The InChI developers argued that CAS numbers and SMILES could not be adopted everywhere because they were owned and controlled rather than open, or too costly. This was one reason for creating an open standard.[9]
History
From the 1960s, many organizations built computer methods for recording structures, some based on older notations such as Wiswesser line notation (1949).[9][24] Most later fell out of use. SMILES, CAS Registry Numbers, and Molfiles (a file format for storing chemical structures) were among the few that survived.[9]
- 1949: William J. Wiswesser invented Wiswesser line notation, one of the first line notations for chemical structure.[24]
- 1965: the CAS Chemical Registry was established.[15]
- 1988: Weininger published the SMILES encoding rules.[5]
- 1990: EINECS was published, listing substances on the European market from 1971 to 1981.[21]
- 2000: IUPAC and NIST started the InChI project.[3]
- 2005: InChI was introduced to the public.[9]
- 2007: the first InChIKey format appeared, in software version 1.02-beta.[3]
- 2008 or 2009: Standard InChI was released. Sources disagree on the year: the InChI Trust's technical FAQ gives 2008, while its history page gives January 2009 and the 2015 technical paper gives 2009.[4][23][3]
- 2009: the InChI Trust, a not-for-profit UK charity, was set up to maintain and develop InChI.[9]
References
- CAS REGISTRY, CAS.
- Caffeine (CID 2519): computed properties, PubChem.
- InChI, the IUPAC International Chemical Identifier, Journal of Cheminformatics, 2015.
- InChI Technical FAQ, InChI Trust.
- Daylight Theory: SMILES, Daylight Chemical Information Systems.
- Notation-level confounding: When inconsistent molecular notations mislead chemical language models, arXiv, 2025.
- Global Substance Registration System: consistent scientific descriptions for substances related to health, Nucleic Acids Research, 2021.
- PubChem Compounds, PubChem.
- InChI, the worldwide chemical structure identifier standard, Journal of Cheminformatics, 2013.
- Caffeine (CID 2519): CAS Registry Number, PubChem.
- Caffeine (CID 2519): European Community (EC) Number, PubChem.
- UN numbers and transporting dangerous goods, Environmental Protection Authority (New Zealand).
- Food additives, European Food Safety Authority.
- Caffeine (CID 2519): UNII, PubChem.
- Chemical Abstracts Service: National Historic Chemical Landmark, American Chemical Society.
- Finding and Verifying CAS Registry Numbers on STN, ACS Division of Chemical Information, 1993.
- Check digit verification of CAS Registry numbers, CAS.
- CAS registry number, WebElements, University of Sheffield.
- CASNumberCheckDigit, Apache Commons Validator.
- CLP Annex VI, 1.1.1: Numbering of entries and identification of a substance, Regulation (EC) No 1272/2008, via ReachOnline, 2008.
- EC Inventory, European Chemicals Agency.
- List of additives, Food Safety Authority of Ireland.
- About the IUPAC InChI Standard, InChI Trust.
- Wiswesser Line Notation (wln), Open Babel documentation.
