Skip to main content

Pakistan's Medicine Verification Platform

DrugTrace.pk

2D Code Decoder

Scan or paste a DataMatrix/QR code to read the GTIN, batch, expiry and serial, and spot mismatches.

Table of contents7 sections

What this tool does

The 2D Code Decoder reads the DataMatrix or QR code on a medicine pack using your camera or pasted text and shows the GS1 fields inside: product GTIN, batch, expiry and serial number. It validates the GTIN check digit and flags any mismatch with the batch and expiry printed on the carton.

Decoding happens entirely in your browser. Nothing is sent to our servers.

How to use it

  1. 1

    Scan or paste

    Tap 'Scan with camera' and point at the square code, or paste the code text.

  2. 2

    Read the fields

    GTIN (01), expiry (17), batch (10) and serial (21) are shown separately.

  3. 3

    Cross-check the print

    Type the batch and expiry printed on the carton; mismatches are flagged in red.

  4. 4

    Verify officially

    Use the button to verify the serial on DRAP's track-and-trace portal.

Supported formats

Raw GS1 element strings with FNC1 separators, bracketed '(01)โ€ฆ(17)โ€ฆ' text, and GS1 Digital Link URLs. Plain QR codes and retail EAN-13 barcodes are recognised but carry no pack-level data.

Why a valid code isn't proof

Counterfeiters can copy a genuine code onto many fake packs. The decoder catches inconsistent or invalid codes; only the official system can tell whether a serial has already been dispensed.

Questions about this tool

Does the decoder send my scan anywhere?

No. Decoding happens entirely in your browser. See also: Mehfooz Dawa app.

What does 'check digit invalid' mean?

The GTIN's last digit doesn't match the GS1 checksum, which means it was mistyped or printed incorrectly. On a real pack that's a serious warning sign.

Related guides