Tool to generate barcodes. Barcodes are a representation of data in a graphic form (with bars), for automatic reading by a machine and can be designed using this generator.
Barcode Generator - dCode
Tag(s) : Image Processing, Character Encoding
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!
Barcodes are standardized lines of vertical bars. The black lines on a white background represent logical 0s or 1s, their width can also modify their interpretation.
A barcode is usually made up of a code signaling the beginning, then the data, then a checksum to verify the integrity of the data read, and finally a code signaling the end of the barcode.
To decode/read a barcode, the easiest way is the dedicated handheld reader here (affiliate link) or the smartphone: install an app like Google Goggles or Barcode Scanner here (affiliate link) (sometimes the default camera app includes the feature).
To better understand the mechanism under each barcode, dCode offers pages for the most frequent barcodes (2D or 3D) (QR-Code, Barcode 128, Barcode 39, Barcode 93, EAN, EAN13, etc.) but overall the barcode reading operation is a coding of the black and white elements in binary codes (0 and 1) accompanied by a correspondence table.
Indicate the content to be coded and the type of bar code standard.
The dCode generator only follow the instructions of each barcode norm.
Bar codes are usually accompanied by a text repeating their value for a non-automated reading (by humans). It is possible to write another custom value with dCode.
Preserve the dimensions of the original label for a better rendering.
Products with an EAN-13 code (13 digits) use the first 3 digits to code the country associated with the manufacturer. This is not necessarily the country of production! Here are the first digits for the most often international barcodes:
Example: '000 to 019', '030 to 039' and '060 to 139' for United States
Example: '500 to 509' for United Kingdom
Example: '690 to 699' for China and 489 for Hong Kong
dCode retains ownership of the "Barcode Generator" source code. Any algorithm for the "Barcode Generator" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Barcode Generator" 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 Generator" 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.
The content of the page "Barcode Generator" 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:
In a scientific article or book, the recommended bibliographic citation is: Barcode Generator on dCode.fr [online website], retrieved on 2025-04-15,