National Stock Number (NSN) generator

Last modified: April 3, 2025

The National Stock Number (NSN) generator creates standardized, unique identification numbers for managing and cataloging supply items in military, government, and industry logistics systems.

The National Stock Number (NSN) or NATO Stock Number comprises a 13-digit stock number. It comprises the four-digit Federal Supply Classification (FSC) and the nine-digit National Item Identification Number (NIIN). The NIIN consists of a two-digit National Codification Bureau (NCB) number followed by a seven-digit item number.

Generator properties

The table provides key details about the generator, including the short name, example of the generated data, the supported data types, and whether it is specific to a particular country.

Short name Example of generated data Data type matching Country-specific
NSN 7240-00-061-1163, 8010-01-218-0857, 1367-47-212-7215, … character varyingcharactertext Default

Matching rules

The generator can be assigned to a column that matches any of the following rules:

  • The column name contains ‘stock’, preceded or followed by any or no characters, and ends with ‘numb’, regardless of the table name.
  • The column name is ‘NSN’, regardless of the table name.

Configure additional options

The generator produces data based on a regular expression. Since it is built on the RegExp generator, see Regular Expression generator to customize settings and understand the correct usage of syntax.

Preview of the column data generated by the National Stock Number (NSN) generator

National Stock Number (NSN) generator