Reading or checking a Pharmacode
Scan the bars
Start the camera and hold it square to the bars, with all of them and a little white space on both sides inside the frame. Several lines across the code are read and the value most of them agree on is used.
Or open an artwork file
Choose a photo, a PDF proof (up to 50 pages) or a Word, Excel, PowerPoint or OpenDocument file. The pictures inside Office and OpenDocument files are scanned one by one.
Read both directions
Each result shows the value, how many bars were found and how many were narrow or wide, and the number you would get if the code had been printed the other way up.
Check a number by typing it
Enter a whole number from 3 to 131070 and press Show its bars. The page lists the sequence of narrow and wide bars that number needs, which you can compare with a proof.
Example: approving a carton proof
A small contract packer for a supplements brand receives a carton proof from its printer. The specification says the Pharmacode should be 1234. The packer types 1234 to see the expected pattern, then opens the PDF proof to read the printed code.
The proof read as 1234, with 10 bars, 5 narrow and 5 wide. The page also showed that the same bars read from the other end give 1835, which is why the specification also states which way round the code sits on the carton.
Typed: 1234 Opened: carton-proof-v3.pdf
1234 10 bars: narrow, narrow, wide, wide, narrow, wide, narrow, narrow, wide, wide. Typed 1234 10 bars (5 narrow, 5 wide). If the code was printed the other way up, it reads 1835. carton-proof-v3.pdf
Pharmacode at a glance
| Property | Value |
|---|---|
| Content | One whole number |
| Range | 3 to 131070 |
| Bars | 2 to 16, each narrow or wide |
| Smallest code | 3 is two narrow bars |
| Largest code | 131070 is sixteen wide bars |
| Check digit | None |
| Reading direction | Not marked in the code; agreed in the artwork |
Why packaging lines still use it
Pharmacode is not meant for shops or patients, which is why it does not look like a retail barcode. A sensor on a cartoning or labelling machine reads it at speed to make sure the leaflet, carton or label matches the product being packed, and stops the line if it does not. A short number and simple bars make it robust when printed small, in colour or at the edge of a fold.
Questions people ask
What is a Pharmacode barcode used for?
It identifies a packaging component, such as a particular carton design or patient leaflet, so that equipment on the packing line can check the right item is being used. It carries only a number, usually defined in the artwork specification, and is not intended to be scanned by retailers or the public.
Why does the scanner show two different numbers?
Pharmacode has no marker showing which end comes first. Reading the bars left to right gives one value; reading them right to left gives another. The page shows the left-to-right reading as the value and the reverse in the detail. Your specification should say which orientation is correct on the pack.
Can Pharmacode be printed in colour?
It often is, because the bars only need enough contrast with the background for a sensor to see them. For scanning with a phone camera, dark bars on a light background read most reliably; pale colours on white, or bars across a varnish or a fold, may not read here even if a line sensor copes with them.
How do I make a Pharmacode?
This page reads codes and shows the bar sequence for any number from 3 to 131070, which is enough to check a proof by eye. To produce print-ready artwork, use your packaging design software or your printer's barcode tools, then read the proof here to confirm the value.
Where your data goes
Images and artwork files are decoded by a small reader that runs on this page. No artwork, proof or code value is uploaded, which matters for unreleased packaging.
Checked against the tool on