HomeValidatorsFinance & Global IDsNPI Number Validator

NPI Number Validator

Finance & Global IDs

Validate a US National Provider Identifier (NPI) number instantly using the CMS modified Luhn checksum. Free, in-browser — no data uploaded.

Reviewed by the thecalcu.com team · Last updated July 25, 2026

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.

Why Use an NPI Number Validator?

NPI validation at the form or API level is a standard requirement in healthcare IT. A transposed digit in an NPI causes a claim to be rejected, and healthcare claim rejections mean delayed reimbursement, staff time to reprocess, and potential compliance flags.

Healthcare billing use case: An Indian healthcare SaaS team building a US revenue cycle management (RCM) platform collects NPIs from provider clients during onboarding. A validator at the intake form prevents transposed digits from reaching the billing system, where a wrong NPI causes 837P claim rejections from the payer.

Developer use case: A fintech or health-tech developer building a provider credentialing API needs a fast pre-validation filter for NPIs entered by users before submitting to NPPES for a live lookup, rejecting obviously invalid numbers (wrong length, checksum failure) without consuming API quota.

Who Should Use This Validator?

Healthcare IT developers building US RCM, EHR, credentialing, or insurance claim platforms who need client-side NPI format validation before submission.

Indian technology teams building US healthcare products, revenue cycle management, practice management software, prior authorisation platforms, where NPIs appear in every transaction.

Hospital and clinic billing departments double-checking provider NPIs before submitting batch claims to Medicare or commercial payers.

Healthcare recruiters and credentialing coordinators verifying that NPI numbers supplied by provider candidates have a valid structure before initiating NPPES lookups.

What Insights Does the NPI Number Validator Give You?

A valid result shows the 10-digit NPI, the provider type (Type 1 individual or Type 2 organisation based on the first digit), and confirmation that the CMS modified Luhn check digit is correct.

An invalid result specifies the failure: wrong digit count, invalid first digit (not 1 or 2), or failed Luhn check digit. A Luhn failure usually means a transposed digit, the validator's message notes this, and the user should re-enter the NPI digit by digit.

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.
Show formula & methodology ↓Show less ↑

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 |

Related Tools

You may also find these useful: Routing Number Validator, CUSIP / ISIN Validator.

Frequently Asked Questions

What is a National Provider Identifier (NPI)?
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.
What is the difference between a Type 1 NPI and a Type 2 NPI?
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.
How does the NPI checksum work?
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.
Can I look up a provider's name and address using their NPI?
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.
Is a valid NPI checksum a guarantee that the provider is currently active?
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.
Do Indian healthcare providers have NPIs?
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.
What is a taxonomy code and how does it relate to NPI?
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.
Is my NPI data stored when I validate it?
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.
How do I use the NPI Number Validator?
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.
How do I get an NPI if I'm a US healthcare provider?
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.
What is an NPI used for in 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