NPI Number Validator
us-financeValidate a US National Provider Identifier (NPI) number instantly using the CMS modified Luhn checksum. Free, in-browser — no data uploaded.
What is a NPI?
The NPI Number Validator checks whether a US National Provider Identifier is structurally correct — verifying the 10-digit length, valid provider type prefix, and the CMS-modified Luhn check digit algorithm used by the Centers for Medicare & Medicaid Services.
An NPI (National Provider Identifier) is a unique 10-digit identifier issued by CMS to every US healthcare provider under the HIPAA Administrative Simplification rules. Required since May 2007, it is the standard identifier used on every health insurance claim in the United States — whether submitted to Medicare, Medicaid, or commercial insurers. The NPI replaced the UPIN (Unique Physician Identification Number) and other legacy provider identifiers.
Two NPI types:
- Type 1 (first digit: 1) — Individual healthcare providers: physicians, nurses, dentists, physiotherapists, social workers, and other licensed practitioners
- Type 2 (first digit: 2) — Organisations and group entities: hospitals, group practices, pharmacies, home health agencies, and nursing facilities
The validator runs the CMS-modified Luhn algorithm: the string "80840" is prepended to the 10-digit NPI before applying the standard Luhn check. This modification ensures that the NPI check digit range cannot overlap with legacy numbering systems.
What this validator checks: digit count (exactly 10), valid first digit (1 or 2), and CMS Luhn checksum.
What it does not check: Whether the NPI is actively enrolled in Medicare, whether the provider's licence is current, or any details from the NPPES NPI Registry. For active status, use the EIN Validator pattern alongside the public NPPES registry.
All validation is client-side. No data is transmitted.
How to use this NPI calculator
- Enter the 10-digit NPI in the input field — digits only, no spaces or hyphens.
- Check the Valid/Invalid badge — updates instantly.
- Read the details — provider type (Type 1 or Type 2) and check digit confirmation.
- If invalid: verify the check digit and first digit, and re-enter carefully.
- For active status: query the NPPES NPI Registry at nppes.cms.hhs.gov.
- Related tools: use the EIN Validator for employer identification numbers.
Formula & Methodology
CMS Modified Luhn algorithm:1. Prepend "80840" to the 10-digit NPI → 15-digit string 2. Apply standard Luhn to the 15-digit string: - From the rightmost digit, double every second digit - If doubling > 9, subtract 9 - Sum all digits 3. Valid if: sum % 10 === 0Example: 123456789315-digit: 80840 1234567893 Luhn sum = 70 → 70 % 10 = 0 ✓ Valid First digit: 1 → Type 1 (individual provider)Valid and invalid examples: | NPI | Valid? | Note | |---|---|---| |1234567893| ✓ | Luhn passes, Type 1 | |1234567890| ✗ | Luhn fails — transposed last digit | |0123456789| ✗ | First digit must be 1 or 2 | |123456789| ✗ | Only 9 digits |
Frequently Asked Questions