Standards/ean-8
EAN-8
Overview
EAN-8 is the short, 8-digit barcode of the EAN/UPC family, used on retail products whose packaging is too small for an EAN-13: GS1 Netherlands gives a lipstick and a box of matches as examples 7. It is scanned at the checkout by the same scanners as EAN-13 and UPC-A. The bars carry a GTIN-8, an 8-digit Global Trade Item Number made of a GS1-8 Prefix, an item reference and a check digit, or an RCN-8, a Restricted Circulation Number that a company uses for its own internal numbering 110.
Unlike a 13-digit number, a GTIN-8 does not contain the brand owner's company prefix. GS1 Member Organisations assign GTIN-8s individually, on request 1, and only when the pack meets GS1's size limits: printable area under 80 cm², largest label under 40 cm², or a cylinder under 30 mm in diameter 17. The symbology is specified in ISO/IEC 15420 (currently the 2025 edition), and the rules for the numbers it carries are in the GS1 General Specifications 31. In Japan the same symbol is the 8-digit "shortened type" of the JAN code (JAN-13) 9.
History
EAN (1977). GS1 dates the European Article Numbering Association (EAN) to 1977, founded in Brussels as a not-for-profit standards organisation, with a barcode fully compatible with the U.S. Universal Product Code 5. A 2002 trade-press history in The Grocer says the European standard bar code was launched in 1977 and that the first international bar code it produced was EAN-13 6. Wikipedia and Seagull Scientific describe EAN-8 as a derivative of EAN-13 developed for small packages 1917. None of the sources read for this page gives the year EAN-8 itself was introduced or names its designers.
GS1 (2005). The Uniform Code Council (UCC) and EAN merged in 2005 into a single international organisation, GS1, with 101 national Member Organisations 5.
ISO standardisation. The EAN/UPC symbology became ISO/IEC 15420. The second edition (December 2009) is now withdrawn; the third edition, ISO/IEC 15420:2025 (37 pages, ISO/IEC JTC 1/SC 31), was published in November 2025 after a project approved on 30 March 2022 43. The ISO text covers the bars only. Its abstract says data content and the rules for using the symbology are defined in the GS1 General Specifications 3. BWIPP also lists BS EN 797 as a standard for EAN-8 10.
Narrowing use. The GS1 General Specifications now restrict GTIN-8 further: trade item groupings (cases and multipacks of one product) created before 2023 may keep a GTIN-8, but from 1 January 2023 GTIN-8 SHALL NOT be used for groupings 1.
Technical specification
The rules below are from GS1 General Specifications Release 26.0 (January 2026) unless another source is cited 1.
Numbers it carries.
| Number | Structure | Who assigns it |
|---|---|---|
| GTIN-8 | GS1-8 Prefix (2 or more digits) + item reference + check digit, 8 digits in all | The GS1-8 Prefix comes from GS1 Global Office; the item reference from a GS1 Member Organisation |
| RCN-8 | RCN-8 Prefix 0 or 2 + item reference (N2–N7, any digits) + check digit |
The company using it, for internal use only; it is not unique outside the company |
The GS1-8 Prefixes are allocated as follows 1:
| GS1-8 Prefix | Use |
|---|---|
| 000–099 | Restricted Circulation Numbers within a company |
| 100–199 | GTIN-8s |
| 200–299 | Restricted Circulation Numbers within a company |
| 300–951 | GTIN-8s |
| 952 | Demonstrations and examples of the GS1 system |
| 953–976 | GTIN-8s |
| 977–999 | Reserved for future use |
GS1's public prefix list adds that 960–969 are held by GS1 Global Office for GTIN-8, of which 960, 961 and 9620–9624 have been assigned to GS1 UK and 9625–9626 to GS1 Poland for GTIN-8 allocation. The same page says GS1 Prefixes do not identify a product's country of origin 2. RCN-8 Prefixes 0 and 2 give two million internal numbers; with prefix 0 the code is sometimes called a velocity code, because it is quicker to key in 1. BWIPP calls this variant "EAN-Velocity" 10. RCNs SHALL only be encoded in EAN-8, EAN-13, UPC-A or UPC-E and never with GS1 Application Identifiers, so they cannot go into 2D barcodes 1.
Check digit. The standard GS1 mod-10 algorithm: multiply N1 to N7 by 3, 1, 3, 1, 3, 1, 3, add the results, and subtract the sum from the nearest equal or higher multiple of ten 1. For 9638507: 9×3 + 6 + 3×3 + 8 + 5×3 + 0 + 7×3 = 86, so the check digit is 4 and the GTIN-8 is 96385074. The reader verifies the check digit automatically 1.
Symbol structure. Reading left to right: left quiet zone, normal guard pattern, four symbol characters from number set A, centre guard pattern, four symbol characters from number set C, normal guard pattern, right quiet zone. The rightmost character is the check digit 1. EAN-13 uses number sets A and B on its left half, and the mix of A and B there encodes the extra 13th digit; EAN-8 uses set A alone, so all eight digits are encoded explicitly 117.
- Each symbol character is 7 modules wide, made of two bars and two spaces of 1 to 4 modules each, and is self-checking. The symbology is omnidirectionally decodable 1.
- Guard patterns add 11 non-data modules 1. With 8 × 7 data modules, the symbol is 67 modules wide; with the minimum quiet zones of 7 modules on each side it is 81 modules 1.
- The ISO/IEC 15424 symbology identifier a scanner can prefix to the data is
]E4(8 digits) 1.
Dimensions. At the nominal X-dimension of 0.330 mm, the bars of an EAN-8 are 18.23 mm high, against 22.85 mm for EAN-13, UPC-A and UPC-E. The guard bars extend 5X (1.65 mm at nominal size) below the others 1. GS1 symbol specification table 1 (retail POS) sets 1:
| Parameter | EAN-8 |
|---|---|
| X-dimension, minimum / target / maximum | 0.264 / 0.330 / 0.660 mm |
| Bar height at those X-dimensions | 14.58 / 18.23 / 36.46 mm |
| Quiet zones, left / right | 7X / 7X (2.31 mm each at nominal size) |
| Minimum print quality | 1.5/06/660 |
The bars and spaces of characters 1, 2, 7 and 8 are narrowed or widened by 1/13 of a module (0.025 mm at nominal size) to even out width tolerances 1. Truncation (normal length, reduced height) is allowed only when a full-size barcode cannot be printed, and it removes omnidirectional scanning 1.
Add-ons. The General Specifications attach the 2- and 5-digit add-on symbols (EAN Add-on (EAN-2, EAN-5)) to EAN-13, UPC-A and UPC-E, not to EAN-8 1. BWIPP and Zint can draw EAN-8 with an add-on, but both call it non-standard 1012.
When a GTIN-8 may be used. Before choosing a GTIN-8, GS1 tells companies to check with their printer whether an EAN-13 or UPC-A could be printed at a smaller X-dimension, the label redesigned, a GS1 DataBar Retail POS symbol used, or a truncated barcode accepted. GTIN-8 is authorised only when the total printable area of the pack is under 80 cm², the largest label is under 40 cm², or the product is cylindrical with a diameter under 30 mm 1. A GTIN-8 can also be carried by the GS1 DataBar Retail POS family (GS1 DataBar) 1, and as the linear part of a GS1 Composite symbol 1012.
Use cases
- Small retail packs. The primary use: fixed-measure products scanned at the checkout whose packs are too small for EAN-13 1. Wikipedia names cigarettes, pencils and chewing-gum packets 19; GS1 Netherlands names lipstick and matches 7. GS1 Netherlands evaluates each item before issuing a GTIN-8, sells it per item, offers it only to companies that already hold a code package, and does not offer it for medical devices or medicines 7. GS1 Sweden requires a separate GS1-8 prefix to create GTIN-8s 8.
- In-store numbering (RCN-8). Retailers can number their own goods with RCN-8s beginning
0or2, which are valid only inside the company 110. Wikipedia mentions own-brand products sold only in the retailer's stores 19. - Pharmacy products. GS1 lists GTIN-8 among the keys for regulated healthcare retail consumer items sold through pharmacies, carried in a linear symbol or GS1 DataMatrix 1. GS1 Netherlands notes that many small medical devices and medicines use a GTIN-13 in a GS1 DataMatrix instead 7.
- Japan. GS1 Japan's 8-digit shortened JAN code exists in two forms: a GTIN-8 "one-off key", and numbers built from a 6-digit shortened-type GS1 company code 9.
- Mobile wallet passes. The Google Wallet API accepts
EAN_8as a pass barcode type, though not for rotating barcodes 20.
Implementations
EAN-8 is supported by the major open-source barcode libraries. All of them can check the check digit.
| Library | Language | Kind | Stars | Last active | EAN-8 notes |
|---|---|---|---|---|---|
| bwipp/postscriptbarcode (BWIPP) | PostScript | encoder | 504 | 2026-10 | ean8 takes 7 or 8 digits; computes the check digit for 7 and verifies it for 8; options includetext, guardwhitespace, guarddescent (default 5X) 1022 |
| metafloor/bwip-js | JavaScript | encoder | 2431 | 2026-08 | JavaScript port of BWIPP; bcids ean8 and ean8composite 11 |
| zint/zint | C | encoder | 827 | 2026-10 | BARCODE_EAN8 (10) and BARCODE_EAN8_CC (148); up to 7 digits get a check digit added, 8 digits are verified, shorter input is zero-filled 1223 |
| lindell/JsBarcode | JavaScript | encoder | 5900 | 2026-06 | EAN-13, EAN-8, EAN-5, EAN-2, UPC-A 16 |
| zxing/zxing | Java | decoder | 34184 | 2026-11 | Lists EAN-8 among 1D product formats; the project is in maintenance mode 13 |
| zxing-cpp/zxing-cpp | C++ | encoder/decoder | 2089 | 2026-11 | EAN-13, EAN-8, UPC-A, UPC-E and add-ons 14 |
| mchehab/zbar | C | decoder | 1389 | 2026-10 | Reads EAN-13/UPC-A, UPC-E and EAN-8 15 |
The BWIPP and Zint manuals both use prefix 952, GS1's range for demonstrations and examples, in their samples (95200002 and 9520000) 10121. Zint notes that it reports an EAN-8 as 8 digits, and expands it to 13 only when an add-on is present 12.
Comparison
| EAN-8 | UPC-E | EAN-13 | |
|---|---|---|---|
| Number carried | GTIN-8 or RCN-8 | GTIN-12 beginning with 0 and containing four or five zeros in set positions, zero-suppressed into 6 encoded digits | GTIN-13 (or RCN-13) |
| How the number is obtained | Assigned individually by a GS1 Member Organisation, on request, for a small pack | Derived from the company's own GTIN-12 | Built from the company's GS1 Company Prefix |
| Symbol width with minimum quiet zones | 81 modules | 67 modules | 113 modules |
| Nominal bar height | 18.23 mm | 22.85 mm | 22.85 mm |
All figures in the table are from the GS1 General Specifications 1. UPC-E is a compression of an existing GTIN-12, so a company can produce it from its own numbering if the number has the required zeros. A GTIN-8 is a separate number that has to be requested 1. GS1 lists other options to try before a GTIN-8: a smaller EAN-13, a redesigned label, or a GS1 DataBar Retail POS symbol 1. GS1 Netherlands points out that a GS1 QR code with an EAN-13 often fits on small items as well and is often cheaper 7. For extra data such as batch or expiry, the GTIN has to move to a carrier that takes GS1 Application Identifiers (GS1-128, GS1 DataBar, GS1 DataMatrix, GS1 QR Code); RCN-8s cannot, because RCNs are barred from Application Identifiers 1.
Fun facts
- GS1 warns that an EAN-8 carrying an RCN-8 with prefix 0 can be confused with a UPC-E number when codes are keyed in by hand, and recommends prefix 2 for internal numbering where that risk exists 1.
- The best-known EAN-8 picture, the Wikimedia Commons file
EAN8.svgused on Wikipedia's EAN-8 article, shows96385074. The image was uploaded in February 2007 and released into the public domain 1819. - GS1 suggests printing
<or>in the human-readable line, with the point at the edge of the quiet zone, to help printers keep the quiet zone clear 1.
Status
Active. GS1 calls EAN/UPC barcodes the longest-established and most widely used GS1 barcodes 21. The January 2026 General Specifications (Release 26.0) still list EAN-8 as a carrier for GTIN-8 at retail POS. They also allow 2D barcodes alongside the linear barcode during a transition period, and mention GS1's ambition for retail points of sale worldwide to read 2D barcodes by the end of 2027 1. ISO/IEC 15420:2025, published in November 2025, is the current symbology standard and replaced the withdrawn 2009 edition 34. GTIN-8s are no longer allowed for new trade item groupings (since 1 January 2023), and RCNs, including RCN-8, cannot be carried in 2D barcodes 1.
Sources
Deployments
No country reports mention this standard by name.
Regions / aggregations not mapped to a single country
- Universal