Barcode Generator

Make an EAN-13 or Code 128 barcode, see it on the page, and download it as SVG or PNG.

Type 12 digits and the check digit is added, or all 13 digits to check the last one.

The width of the thinnest bar, 1 to 10 px.

20 to 400 px.

This tool makes the barcode image only. To sell a product in shops, its EAN number must be issued by GS1. In the UAE, that is GS1 UAE.

Print a test copy and scan it before you use the barcode.

Your barcode

6291041500213
Full number
6291041500213
Check digit
3
Image size
226 x 114 px

How the check digit is worked out: GS1, How to calculate a check digit manually, read 23 November 2026.

Source for the bar patterns: GS1 General Specifications, Release 26.0 (EAN-13 in section 5.2, Code 128 in section 5.4, which follows ISO/IEC 15417), read 23 November 2026.

Code 128 here uses code set B, with a start character, a check character worked out modulo 103, and a stop character.

EAN-13 and Code 128

EAN-13 for 13-digit product numbers. Code 128 for letters, digits and symbols, such as stock or order codes.

Check digit done for you

Type 12 digits and the EAN-13 check digit is added. Type 13 and the last digit is checked.

Private

The barcode is drawn in your browser. Nothing you type is sent or saved.

How to use the Barcode Generator

  1. Pick EAN-13 for a product number or Code 128 for letters and digits.
  2. Type the value. For EAN-13, type 12 digits to add the check digit, or 13 to check it.
  3. Set the bar height and module width, then download the barcode as SVG or PNG.

Questions and answers

Is it free?

Yes. The tool is free to use and needs no account or sign-up.

How is the EAN-13 check digit worked out?

The first 12 digits are multiplied by 1 and 3 in turn and added up. The check digit is what takes the sum up to the next multiple of ten, as GS1 describes.

Can I use these barcodes to sell products in shops?

This tool makes the image only. To sell in shops, the EAN number must be issued by GS1. In the UAE, that is GS1 UAE.

Which characters can Code 128 hold here?

Plain keyboard letters, digits, spaces and symbols (ASCII 32 to 126), up to 80 characters. It uses code set B.