Barcodes on Medicines: What They Contain
What barcodes and 2D codes on medicine packs are used for — identification, batch tracking and authenticity — and what scanning them can tell you.
Medicine packs carry barcodes and increasingly 2D codes such as Data Matrix. They're mostly used by pharmacies and supply chains, but understanding them is useful.
What medicine codes are for
- Product identification – which medicine, strength and pack size
- Batch numbers – for tracking and recalls
- Expiry dates
- Serial numbers – unique to each pack in some systems
- Authenticity verification – helping detect counterfeit medicines
Data Matrix codes
Many medicine packs now use square Data Matrix codes. In some regions, regulations require unique identifiers on prescription medicine packs to help fight counterfeiting. Pharmacists scan them to verify packs before dispensing.
What you might see when scanning
Depending on the code, scanning may show:
- A product number (GTIN)
- A batch or lot number
- An expiry date
- A serial number
The raw data may look like a string of numbers with separators. It's designed for systems, not humans, but some parts are readable.
Why it matters
- Recalls: batch numbers help identify affected products.
- Safety: authentication helps keep fake medicines out of the supply chain.
- Accuracy: pharmacies scan to reduce dispensing errors.
Checking expiry
The printed expiry date on the pack is the easiest way to check. If you can't read it, a pharmacist can help.
Don't rely on scans for medical decisions
Always read the leaflet and follow your doctor's or pharmacist's advice. If something about your medicine seems wrong — unusual packaging, spelling errors, different appearance — ask a pharmacist.
Keep records
Scanning medicine codes and keeping a history can help you note batch numbers for your records, which is useful if a recall is announced.
QR Code Scanner
Fast QR & barcode scanner with a built-in QR code generator
More about QR Code Scanner
Barcode Scanning for Allergen and Ingredient Checks
How barcode and QR scans can help people with allergies and dietary needs find ingredient information — and why the printed label still matters.
Read article →QR Codes at Restaurants: Ordering, Menus and Paying Safely
How restaurant QR codes for menus, ordering and payment work, and simple checks to make sure you're scanning the restaurant's real code.
Read article →QR Codes in Emails and PDFs: Phishing Risks
Attackers increasingly hide phishing links inside QR codes in emails and documents. Learn how 'quishing' works and how to protect yourself.
Read article →QR Codes on Delivery Packages: What to Scan and What to Ignore
Parcels carry barcodes and QR codes for tracking and returns. Learn what they're for and how to avoid scam codes on unexpected deliveries.
Read article →