Skip to main content

DUNS Number Validator

Validate 9-digit numeric structure and format for corporate Dun & Bradstreet DUNS numbers.

How does validation work?

The Data Universal Numbering System (D-U-N-S Number) is a proprietary 9-digit corporate identifier created by Dun & Bradstreet to track business entities worldwide.

Mandated by Apple Developer Organization accounts, Google Play Developer corporate registration, and international government vendor systems.

Anatomy & Structure of D-U-N-S Number (Dun & Bradstreet)

The DUNS number consists of 9 digits structured across 3 functional blocks:

PositionFieldLengthMeaning & RuleExample
1 & 2Operational Prefix2 digitsInitial segment allocated in D&B global registry infrastructure12
3 to 5Registry Block3 digitsRegional entity identification index345
6 to 9Entity Serial4 digitsUnique identifier assigned to the corporate entity or branch6789

D-U-N-S Number Validation Rules

Validation enforces strict 9-digit length and non-trivial sequence check:

length == 9 && !/^(\d)\1{8}$/.test(digits)
  1. 1. Strip spaces and hyphens (standard masked format: XX-XXX-XXXX).
  2. 2. Verify total length is strictly 9 numerical digits.
  3. 3. Reject repeated trivial sequences (e.g. 000000000, 111111111).
  4. 4. Conforming numbers are accepted across Apple Developer and Google Play Console.

Frequently Asked Questions on Validation