ROR identifier pattern

The canonical form of a ROR identifier value (a "ROR ID", the id element in a ROR record) is the entire URL. Therefore, ROR identifier values should be of the form https://ror.org/02mhbdp94 instead of ror.org/02mhbdp94 or 02mhbdp94.

ROR identifiers are assigned randomly, not sequentially. The ROR ID of one organization cannot be predicted from the ROR ID of a related organization.

The unique strings in ROR identifiers have a consistent pattern and can be validated with regular expressions. The string consists of 9 characters: a zero followed by 6 characters that can be either lower-case letters or integers followed by 2 integers.

The most precise expression of the ROR ID pattern uses base 32 Crockford encoding, which excludes letters "I", "L", "O", and "U":

^0[a-hj-km-np-tv-z|0-9]{6}[0-9]{2}$

The ROR ID pattern can also be expressed using more common regular expression syntax:

^0[a-z|0-9]{6}[0-9]{2}$

Other resources you might find helpful