Search for a tool
Barcode EAN8

Tool to generate / decode EAN-8 barcodes. The EAN8 code (European Article Numbering 8) is a barcode standard used for commercial products.

Results

Barcode EAN8 -

Tag(s) : Character Encoding, Image Processing

Share
Share
dCode and more

dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!


Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!


Feedback and suggestions are welcome so that dCode offers the best 'Barcode EAN8' tool for free! Thank you!

Barcode EAN8

Barcode EAN-8 Generator

 






Options









Barcode EAN8 Reader/Decoder


Loading...
(if this message do not disappear, try to refresh this page)


See also: Binary Code

Answers to Questions (FAQ)

How to encrypt using Barcode EAN8 cipher?

The EAN-8 Barcode format is a subcategory of EAN barcodes from which it incorporates some characteristics. It allows coding only 8-digit numbers (from 0 to 9) using 7-bit binary codes displayed in these two correspondence tables:

DigitLeftRight
000011011110010
100110011100110
200100111101100
301111011000010
401000111011100
501100011001110
601011111010000
701110111000100
801101111001000
900010111110100

To code the first 4 digits, use the binary codes left and for the next 4 digits, use the binary codes right.

A complete EAN8 barcode starts and ends with a normal guard zone that is coded 101 and also contains a central guard zone that is coded 01010 and which separates the first 4 digits of the next 4.

Example: The number 12341234 is coded in EAN-8 (0 = empty and 1 = black bar):

||1234||1234||
1010011001001001101111010100011010101011100100001011011001100110101

The 8th digit of the EAN-8 barcode is a checksum.

How to decrypt a Barcode EAN8?

The decryption of the EAN8 Code is done by binary reading of vertical bars (with black = 1 and white = 0), which can then be translated via the coding table (above).

How to calculate the EAN8 checksum?

The checksum is calculated with weights (3 and 1) associated with the first 7 digits of the bar code. The 8th digit (control character) is the digit $ x $ such as the total sum modulo 10 is equal to 0.

Example: 1234567 has for sum $ 1\times3+2\times1+3\times3+4\times1+5\times3+6\times1+7\times3=60 $ and $ 60 + X \equiv 0 \mod 10 \iff x = 0 $ so the check digit is 0

How to recognize an EAN8 Barcode?

The EAN8 barcode has a graphical form of classic barcode, with generally 3 double bars a little longer located at the beginning, in the middle and at the end.

An EAN8 barcode is made to code only 8-digit numbers and so fits for small objects.

The binary representation of the EAN-8 (noted with 0 or B for black bars and 1 or W for white bars) has a fixed length of 67 bits. It begins and ends with 101 and never includes more than 4 consecutive identical bits.

Source code

dCode retains ownership of the "Barcode EAN8" source code. Any algorithm for the "Barcode EAN8" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Barcode EAN8" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "Barcode EAN8" or any other element are not public (except explicit open source licence like Creative Commons). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.

Cite dCode

The content of the page "Barcode EAN8" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source. Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link: https://www.dcode.fr/barcode-ean8
In a scientific article or book, the recommended bibliographic citation is: Barcode EAN8 on dCode.fr [online website], retrieved on 2025-04-16, https://www.dcode.fr/barcode-ean8

Need Help ?

Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!

Questions / Comments

Feedback and suggestions are welcome so that dCode offers the best 'Barcode EAN8' tool for free! Thank you!


https://www.dcode.fr/barcode-ean8
© 2025 dCode — The ultimate collection of tools for games, math, and puzzles.
 
Feedback