HomeValidatorsus-financeNPI Number Validator

NPI Number Validator

us-finance

Validate 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

  1. Enter the 10-digit NPI in the input field — digits only, no spaces or hyphens.
  2. Check the Valid/Invalid badge — updates instantly.
  3. Read the details — provider type (Type 1 or Type 2) and check digit confirmation.
  4. If invalid: verify the check digit and first digit, and re-enter carefully.
  5. For active status: query the NPPES NPI Registry at nppes.cms.hhs.gov.
  6. 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 === 0

Example: 1234567893
15-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

A National Provider Identifier (NPI) is a unique 10-digit identification number issued by the Centers for Medicare & Medicaid Services (CMS) to healthcare providers in the United States. All HIPAA-covered healthcare providers are required to have an NPI. It replaced older provider identification numbers (like the UPIN) in 2007 and is the standard identifier for providers when billing Medicare, Medicaid, and other health insurers.
Type 1 NPIs are assigned to individual healthcare providers — physicians, nurses, dentists, physiotherapists, and other licensed practitioners. Type 2 NPIs are assigned to organisations and entity-level providers, such as hospitals, group practices, clinics, and pharmacies. A solo practitioner may have only a Type 1 NPI, while a large hospital system may have both a Type 2 NPI for the organisation and individual Type 1 NPIs for each practitioner on staff.
The NPI uses a CMS-modified Luhn algorithm. Before applying the standard Luhn check, the string '80840' is prepended to the 10-digit NPI, creating a 15-character string. The standard Luhn algorithm is then applied to this 15-character string — the sum must be divisible by 10 for the NPI to be valid. This modification ensures NPI check digits cannot collide with legacy provider numbering systems.
Yes — the NPPES NPI Registry (nppes.cms.hhs.gov) is a free public database where you can look up any NPI to see the provider's name, practice address, taxonomy code, and other publicly available details. This validator only checks the format and checksum of the 10-digit number; it does not query the NPPES database. Use the NPPES registry for active status confirmation and provider details.
No — a passing checksum confirms the 10-digit number was correctly issued by CMS (the check digit is valid). It does not confirm the provider is currently enrolled with Medicare, has an active licence, or is currently practising. For billing and credentialing purposes, verify the provider's status through the NPPES NPI Registry or the Council for Affordable Quality Healthcare (CAQH) provider database.
No — the NPI is a US-specific identifier under the HIPAA Administrative Simplification regulations. Indian healthcare providers use different systems: the National Medical Register (NMR) for doctors registered with the National Medical Commission, and state medical council registration numbers for state-level licensing. An Indian IT team building US healthcare billing software would handle NPI validation the same way as any US-market developer.
A taxonomy code is a 10-character alphanumeric code that describes a healthcare provider's type, classification, and specialisation — for example, 207Q00000X for a Family Medicine physician. Taxonomy codes are separate from NPIs but are linked in the NPPES NPI Registry. A single provider may have multiple taxonomy codes associated with their NPI representing different specialities.
No — all validation runs entirely in your browser. The NPI number is never sent to any server, stored, or logged. NPI numbers are public data (the NPPES registry is publicly searchable), but we still keep validation fully client-side. The tool works offline once loaded.
Enter the 10-digit NPI number in the input field. The validator checks the format, confirms the first digit (1 for individual, 2 for organisation), and runs the CMS modified Luhn checksum. The Valid/Invalid badge updates instantly. The details panel shows the NPI type and confirms the check digit.
US healthcare providers apply for an NPI through the NPPES online application at nppes.cms.hhs.gov. The application is free. Individual providers (Type 1) submit their own information; organisations (Type 2) apply with authorised official credentials. Approved NPIs are typically issued within 10 business days. NPIs do not expire but can be deactivated if a provider ceases practice.
NPIs are used in every standard healthcare electronic transaction covered by HIPAA: insurance claims (837P for professional, 837I for institutional), remittance advice (835), eligibility checks (270/271), referrals (278), and claim status inquiries (276/277). Every claim submitted to Medicare, Medicaid, or a commercial insurer must include the rendering provider's NPI and, for group practices, the billing organisation's NPI.
Also known as
check NPI numberNPI validatornational provider identifier checkNPI checksum checkvalidate NPI