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
- 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
- Pick EAN-13 for a product number or Code 128 for letters and digits.
- Type the value. For EAN-13, type 12 digits to add the check digit, or 13 to check it.
- 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.
More free tools
Customer Metrics Calculator
Work out average order value, churn and retention rate, and customer lifetime value from your own numbers.
Open toolSales Commission Calculator
Work out sales commission with a flat rate or up to 10 tiers, with an optional cap and your base salary.
Open toolUAE Corporate Tax Calculator
Enter your taxable income and see UAE Corporate Tax at 0% up to AED 375,000 and 9% above.
Open toolUAE Gratuity Calculator
Estimate your end-of-service gratuity from your basic salary and dates of service.
Open toolNeed a custom tool or app for your business? See our web and software development and AI automation services.