Free tool
Free NDC converter and lookup
Convert any NDC from 10 to 11 digits or back, with or without hyphens, or pull the NDC out of a package barcode. Then look the package up to see the drug it is.
How to look up an NDC
Type the code as it’s printed on the package, hyphens and all, or the 11-digit code from a claim or a pharmacy system. A barcode scan works too. You get the drug, the package it describes, and its labeler, with the date the answer was true.
If you only have 10 digits and no hyphens, you’ll see every way the code can be read. Look each one up: only one is a real listing.
How NDC conversion works
An NDC has three segments: labeler, product and package. The printed code is 10 digits, split 4-4-2, 5-3-2 or 5-4-1. Billing and most databases want 11 digits in 5-4-2, so the short segment gets one leading zero:
- 0002-1433-80 (4-4-2) becomes 00002-1433-80
- 50580-488-10 (5-3-2) becomes 50580-0488-10
- 12345-6789-1 (5-4-1) becomes 12345-6789-01
Going the other way is where apps get it wrong. Strip the hyphens from a 10-digit code and nobody can tell which part was short. An 11-digit code can also have two or three 10-digit readings, when more than one part starts with a zero. Only the listing knows which one is real.
NDC formats: convert 10-digit to 11-digit NDCs walks through each layout, the segments and the mistakes that cause failed lookups.
Barcodes and 12-digit codes
No NDC in use today is 12 digits. A 12-digit number on a US package is usually the UPC-A barcode: a 3, the 10-digit NDC, and a check digit. Scan or paste one into the box above and it pulls the NDC out. The hyphens aren’t in the barcode, so you get every reading.
In your app
Send any of these forms to GET /v1/drugs/ndc/{ndc}, with or without hyphens. A bare 10-digit code is matched as it’s listed, never padded by guesswork. You get the package and the drug it belongs to, and the answer says how current it is. The NDC lookup API page has request examples in curl, JavaScript and Python, and the medication search demo shows other calls with no key. Each package answer includes its RxCUI; NDC to RxCUI, and back explains which one you get.
Barcode in, medication out. Pad NDCs by hand.
Sandbox is 500 lookups a month with no card. When you go live, Launch is $99 a month for one production app.