Skip to content

cusip

Validates a CUSIP (Committee on Uniform Securities Identification Procedures) number used to identify North American securities.

Options

OptionTypeDefaultDescription
messagestringlocale defaultCustom error message

Playground

Valid values

ValueNotes
"037833100"Apple Inc. CUSIP
"38259P508"Google (Alphabet) CUSIP

Invalid values

ValueReason
"037833101"Fails check digit
"12345678"Too short (8 chars instead of 9)

Notes

  • Empty string ("") always returns valid: true. Combine with notEmpty to require a value.
  • CUSIP is always 9 characters: 6 alphanumeric issuer, 2 issue, 1 check digit.

Released under the MIT License.