Smart Apps Pro

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.

Scan barcodes and 2D codes with QR Code Scanner →

QR Code Scanner app icon

QR Code Scanner

Fast QR & barcode scanner with a built-in QR code generator

Get the app

More about QR Code Scanner