Skip to main content

USA DLN Validator

Validate USA Driver's License Numbers. Excellent for software QA testing.

How phonetic DLN validation works

The validator cleans input hyphens/spaces and validates total length (13 characters for Florida or 15 characters for New York). It checks if it starts with a letter followed by digits.

It decodes calendar coordinates from the DDD field, determining the birth month, day, and gender mapping to ensure the identity is logically valid.

Anatomy & Structure of US DLN (Florida: 13 Chars / New York: 15 Chars)

Soundex-based state driver licence formats encode demographic and phonetic data:

PositionFieldLengthMeaning & RuleExample
1Surname Initial1 letterFirst letter of driver's last nameS
2 to 4Surname Soundex3 digitsPhonetic Soundex code of surname consonants530
5 to 7First Name Soundex3 digitsPhonetic Soundex code of first name consonants250
8 & 9Birth Year2 digitsLast two digits of birth year (YY)85
10 to 12DDD Code (Date/Gender)3 digits(Month - 1) * 40 + Day (+500 added for female drivers)585
13 onwardsControl / Tie-breaker1 to 3 charsDigit "0" in Florida or two tie-breaker digits in New York0

Soundex Phonetic Algorithm & DDD Date Decoding

State DMVs encode gender and dates using DDD block arithmetic:

DDD = (Month - 1) * 40 + Day + (Female ? 500 : 0)
  1. 1. Verify first character is a letter (A-Z) and subsequent characters are digits.
  2. 2. Extract the 3-digit DDD code from positions 10 to 12.
  3. 3. If DDD >= 500: female driver; subtract 500 to get base value.
  4. 4. If DDD < 500: male driver; base value equals DDD.
  5. 5. Month = Math.floor(base / 40) + 1.
  6. 6. Day = base % 40.
  7. 7. Validate decoded day and month against calendar limits.
  8. 8. For Florida licences (13 characters), verify final digit is strictly "0".

Frequently Asked Questions