Skip to content

isin

Validates an ISIN (International Securities Identification Number).

Options

OptionTypeDefaultDescription
messagestringlocale defaultCustom error message

Playground

Valid values

ValueNotes
"US0378331005"Apple Inc. ISIN
"DE0005140008"Deutsche Bank ISIN

Invalid values

ValueReason
"US0378331006"Fails Luhn check digit
"XX0378331005"Unknown country code prefix

Notes

  • Empty string ("") always returns valid: true. Combine with notEmpty to require a value.
  • Format: 2-letter country code + 9 alphanumeric chars + 1 check digit (12 chars total).

Released under the MIT License.