
01
(01) GTIN
A 14-digit Global Trade Item Number identifying the exact product, strength and pack size. The last digit is a check digit our decoder validates.
Pakistan's Medicine Verification Platform· Independent, not part of DRAP
DRAP helpline: 0800-03727 Alerts updated Nov 11, 2026
Free in-browser scanner
The square code on a modern medicine carton is usually a GS1 DataMatrix, not a QR code, but most people call it one. Our free scanner reads it in your browser and shows the product code, serial, batch and expiry so you can compare them with the print.

Quick answer
To scan a medicine QR code in Pakistan, open DrugTrace.pk's 2D code decoder on your phone, allow the camera and point it at the square code on the carton. It decodes the GS1 fields (GTIN, serial, batch, expiry) instantly. If any decoded value differs from the printed text, the pack is suspect. Then verify the serial on drugtrace.dra.gov.pk.
What's inside the code
Each piece of data is prefixed by a GS1 Application Identifier (AI) in brackets. Knowing them lets you read any pharmaceutical code. Our DataMatrix guide goes deeper.

01
A 14-digit Global Trade Item Number identifying the exact product, strength and pack size. The last digit is a check digit our decoder validates.

02
Unique to this one pack. This is what DRAP's track and trace portal verifies.

03
The production run. Must match B.No printed on the carton and strip. Check it in our batch alert check.

04
Encoded as YYMMDD. Must match the printed Exp date. Use the expiry calculator for opened packs.

05
Optional on some codes. Should be before expiry and match any printed Mfg date.

06
Decoding happens on your device. No image or code leaves your phone unless you choose to look up the batch.
Step by step
Go to the 2D code decoder and tap Scan with camera. Allow camera access when asked.
Hold the phone 10–15 cm away in good light with the square code filling about a third of the screen. You can also upload a photo.
Check the decoded batch, expiry and GTIN against the text printed next to the code. All must match exactly.
Run the batch through the alert check and verify the serial at drugtrace.dra.gov.pk.

Any phone can read a DataMatrix; a counterfeiter can print one just as easily. What a fake often gets wrong is consistency: the code says one batch, the print says another; the expiry inside the code is a different month; the GTIN check digit doesn't add up.
That is why our decoder puts the decoded fields side by side and flags an invalid GTIN check digit. A real pack is produced by one integrated printing system; a fake is often assembled from parts.

Pharmaceutical packs can carry three kinds of code. The 1D linear barcode (lines) only identifies the product type and is the same on every pack. A QR code (with three large corner squares) is sometimes used for marketing links. The GS1 DataMatrix (a small square with an L-shaped border) is the regulated code that carries serial, batch and expiry.
Only the DataMatrix is used for track and trace. If a 'verification' QR code on a pack opens a website, check the address carefully: genuine official verification happens on .dra.gov.pk domains, never on a link the seller controls.
What each outcome means and what to do next.
| Scan result | What it means | Next step |
|---|---|---|
| All fields match the print | Code is consistent with the pack | Verify serial on DRAP portal |
| Batch or expiry differs | Code and print came from different sources | Do not use; report it |
| Invalid GTIN check digit | The code was likely made up | Do not use; report it |
| Will not scan | Damaged, curved or poor-quality print | Try better light or a photo; inspect the pack |
| No 2D code at all | Product may not be serialised yet | Use batch check and checklist |
Important
Only DRAP's central repository knows whether a serial was issued by the real manufacturer. Use our scanner to catch inconsistencies, then confirm with the official track and trace portal.
Direct answers about medicine QR code scanner Pakistan.
Scanning shows the data inside the code. To check originality, compare it with the printed pack and verify the serial on DRAP's portal at drugtrace.dra.gov.pk.
DRAP's Mehfooz Dawa app verifies serials officially. Our free browser decoder needs no install and shows every decoded field.
Medicine DataMatrix codes are small. Use good light, hold the phone 10–15 cm away and keep the pack flat. Ordinary camera apps sometimes ignore GS1 codes; use a dedicated decoder. See also: Mehfooz Dawa app.
A 2D barcode standard used worldwide for medicine serialisation. It encodes GTIN, serial, batch and expiry using Application Identifiers. See our DataMatrix guide.
Scanning with our decoder happens on your device. Be cautious with QR codes that open websites; only trust official .dra.gov.pk addresses. See also: Mehfooz Dawa app.
Updated 11 November 2026. DrugTrace.pk is independent and not affiliated with DRAP.
Topic hub
DRAP's official serial verification: Mehfooz Dawa, the portal and 2D codes.
Related topics
Using codesHow serialization works, what the GS1 fields inside the code mean, and how to verify a pack officially.
6 min read
Using codesWhat the barcode on your medicine can and cannot prove, how to scan the new 2D codes, and how to spot a copied or mismatched code.
6 min read
Using codesWhat DRAP's track-and-trace system (Mehfooz Dawa) does, how to use it, its limits today, and how DrugTrace.pk complements it.
5 min read