NDC Code Validator
ValidatorValidate NDC (National Drug Code) numbers. Identifies the segment layout (4-4-2, 5-3-2, 5-4-1, or 5-4-2) and computes the normalized 11-digit form. Runs entirely in your browser.
About this tool
About NDC Code Validator
An NDC (National Drug Code) is a unique identifier assigned by the FDA to every drug product sold in the United States, made up of 3 segments: a labeler code (the manufacturer or distributor), a product code (specific strength, dosage form, and formulation), and a package code (package size). The 10-digit form comes in three layouts — 4-4-2, 5-3-2, or 5-4-1 — depending on how many digits each segment uses, while the 11-digit 'normalized' form (fixed 5-4-2) is used by pharmacy claims and billing systems.
The validator accepts dash-separated input (using the dashes to determine each segment's length) or a plain 11-digit string (unambiguously 5-4-2). It identifies which of the four layouts the code uses, breaks it into labeler/product/package segments, and computes the zero-padded 11-digit normalized form used in HIPAA transactions and claims processing.
Use this to verify an NDC pulled from a drug label, pharmacy system, or claims file, to convert a 10-digit NDC into the 11-digit normalized format required by an insurance billing system, or to debug why an NDC is being rejected by a validation layer.
Instant, fully client-side validation with no data ever leaving your browser. Note this checks structural validity only — it does not confirm the NDC is actually assigned to a real drug product, which requires a lookup against the FDA's NDC directory.
Key Features
- Supports all 3 ten-digit layouts (4-4-2, 5-3-2, 5-4-1) plus the 11-digit normalized form
- Decodes the labeler, product, and package segments
- Computes the zero-padded 11-digit normalized code
- Clear guidance when a bare 10-digit code is ambiguous without dashes
- Verified against real published NDC examples
- 100% browser-based, no data ever transmitted
FAQ
NDC Code Validator — Frequently Asked Questions
What is an NDC code?
NDC stands for National Drug Code, a unique 10 or 11-digit identifier assigned by the FDA to every drug product marketed in the United States. It appears on drug packaging, prescriptions, and pharmacy claims, and consists of a labeler code, a product code, and a package code.
Why are there three different 10-digit NDC formats?
The FDA allows the labeler code to be 4 or 5 digits and the product code to be 3 or 4 digits, as long as the total (labeler + product + package) is 10 digits. This produces three valid layouts: 4-4-2, 5-3-2, and 5-4-1. Which one a given drug uses depends on when its labeler code was assigned.
What is the 11-digit 'normalized' NDC format?
Pharmacy claims, insurance billing (HIPAA transactions), and many electronic systems require a fixed 5-4-2 layout regardless of which 10-digit format the drug's official NDC uses. To convert, you zero-pad whichever segment is one digit short: a 4-digit labeler becomes 5 digits, a 3-digit product becomes 4 digits, or a 1-digit package becomes 2 digits.
Why can't I validate a bare 10-digit NDC without dashes?
Because the three 10-digit layouts (4-4-2, 5-3-2, 5-4-1) all have the same total length, there's no way to tell where one segment ends and the next begins from the digits alone — you need the dashes (or another source, like the drug's label) to know the segment boundaries.
Does a correctly formatted NDC mean the drug is real?
No. This validator only confirms the code follows one of the valid segment layouts — it does not confirm the NDC is actually assigned to a real, currently marketed drug product. For that, you'd need to look it up in the FDA's NDC directory.
Tips
- Enter the NDC with dashes (e.g. 50580-488-01) so the segment boundaries are unambiguous
- A bare 11-digit code is always assumed to be the normalized 5-4-2 format, since that's the only layout with a total of 11 digits
- Use the normalized 11-digit output when submitting an NDC to an insurance claim or pharmacy billing system
- This validator never sends your NDC anywhere — everything is checked entirely in your browser
Explore more
Related Tools
Other tools that might be useful for your workflow