CUID2 validator
Check for a lowercase first letter, lowercase letters and digits, and a length of 2–32 characters.
Format validation does not prove origin, uniqueness, or access rights.
IDs are sent to our server for validation. Do not submit confidential values.
Implementation details
Uses @paralleldrive/cuid2@3.3.0 isCuid().
What a passing result means
tz4a98xxat96iws9zmbrgj3a matches, but so does ab. This checks the supported format, not a fixed 24-character schema.1abc and AB fail. Leading and trailing spaces are trimmed.
Legacy CUID v1 strings also fit these rules. A passing result does not identify the generator version.