Skip to content

issn ​

Validates an ISSN (International Standard Serial Number) used to identify periodicals.

Options ​

OptionTypeDefaultDescription
messagestringlocale defaultCustom error message

Playground ​

Valid values ​

ValueNotes
"0028-0836"Nature journal ISSN
"1476-4687"Nature online ISSN

Invalid values ​

ValueReason
"0028-0837"Wrong check digit
"12345678"Missing hyphen

Notes ​

  • Empty string ("") always returns valid: true. Combine with notEmpty to require a value.
  • Format: 4 digits, hyphen, 3 digits, check character (digit or X): NNNN-NNNC.

Released under the MIT License.