NPI Generator
GeneratorGenerate valid NPI (National Provider Identifier) numbers for testing US healthcare software. Supports both individual (Type 1) and organization (Type 2) NPIs. Runs entirely in your browser.
About this tool
About NPI Generator
An NPI (National Provider Identifier) is a 10-digit number assigned by CMS (Centers for Medicare & Medicaid Services) to identify healthcare providers in the United States. Type 1 NPIs (starting with digit 1) identify individual providers — physicians, nurses, therapists; Type 2 NPIs (starting with digit 2) identify organizations — hospitals, clinics, group practices.
This generator picks the correct leading digit for the selected provider type, fills the remaining 8 digits with cryptographically random values, then computes the check digit by prepending the constant ISO/IEC 7812 issuer prefix '80840' to the first 9 digits and running the standard Luhn algorithm on the resulting 14-digit string.
Use this to generate format-valid test NPIs for healthcare software development, EDI/HIPAA transaction testing, EHR system demos, insurance claim processing test suites, or any integration that needs to validate NPI input without exposing a real provider's identifier.
Instant generation entirely in your browser using cryptographically random digits. Every generated NPI passes the official Luhn check digit algorithm, but these are not real, CMS-registered provider identifiers — they're structurally valid test data only.
Key Features
- Generates both Type 1 (individual) and Type 2 (organization) NPIs
- Correct leading digit for the selected provider type
- Official CMS check digit algorithm (80840 prefix + Luhn)
- Cryptographically random account-specific digits
- One-click copy to clipboard
- Disclaimer: test data only, not a real CMS-registered NPI
FAQ
NPI Generator — Frequently Asked Questions
What is an NPI number?
NPI stands for National Provider Identifier, a 10-digit number assigned by CMS (Centers for Medicare & Medicaid Services) to every healthcare provider and organization in the United States. It's used on claims, prescriptions, referrals, and virtually every electronic healthcare transaction.
What's the difference between a Type 1 and Type 2 NPI?
A Type 1 NPI identifies an individual healthcare provider — a physician, nurse practitioner, or therapist — and always starts with the digit 1. A Type 2 NPI identifies an organization — a hospital, clinic, or group practice — and always starts with the digit 2.
Are generated NPIs real?
No. The NPIs produced by this tool pass the official Luhn check digit algorithm and follow the correct Type 1/Type 2 numbering convention, but they are not registered with CMS. Generated NPIs will pass format validation but will fail against the NPPES registry lookup.
Why does the NPI check digit involve the number 80840?
80840 is the constant ISO/IEC 7812 issuer identifier prefix that CMS was assigned for the US healthcare provider numbering system. It's prepended to the first 9 digits before running the Luhn algorithm — this is a quirk of how CMS adapted the ISO 7812 card-numbering standard for NPIs, not something specific to any individual provider.
Tips
- Pick 'Individual' for a Type 1 NPI (starts with 1) or 'Organization' for a Type 2 NPI (starts with 2), matching what your test scenario needs
- Every generated NPI is check-digit valid, so it will pass basic format validation in most systems — but it is not a real CMS-registered identifier
- Use the NPI Validator tool to double-check a generated (or any other) NPI's check digit
- This generator never sends anything to a server — every NPI is built and computed entirely in your browser
Explore more
Related Tools
Other tools that might be useful for your workflow