12-digit base with a 789 prefix
- Input
- 789123456789
- Expected output
- 7891234567895
A made-up sample number: the check digit 5 is computed, and the symbol takes 113 modules with margins.
EAN-13 barcode generator
The EAN-13 a checkout reads joins two things: a number that identifies the product and a drawing that represents that number. The generator handles the drawing, completes the check digit and hands over PNG or SVG. The number, however, has to come from whoever has the authority to issue it.
A made-up sample number: the check digit 5 is computed, and the symbol takes 113 modules with margins.
Weighted sum 83, next multiple of 10 equal to 90, check digit 7.
Sum 89, modulo 10 equals 9, check digit 1.
A number with a wrong check digit would be rejected by any scanner and by the catalog.
EAN-13 in most of the world, UPC-A in the United States and Canada, and EAN-8 on very small packages. Books use ISBN-13. The number has to come from your country's GS1 office; this tool only draws the bars.
No. It means the company that owns the code registered with GS1 Brazil. A product made in China can carry 789 if the brand is registered there.
The scanner will read it, but the number may belong to another company, and marketplaces and retail chains refuse codes that are not in the GS1 registry. For sales, use a licensed GTIN.
Yes. A different size, color, flavor or weight is a different item and gets a different reference, because the code is what the system uses to decide which price and stock to apply.
The nominal module is 0.33 mm and GS1 allows 80% to 200% of that. At 100%, the symbol with margins is 113 x 0.33, or about 37.3 mm wide. The tool warns when the PNG or the label falls outside that range.
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 154 68" width="308" height="136" role="img" aria-label="Barcode TOOLS-2026"><rect width="154" height="68" fill="#fff"/><path d="M10 2h2v50h-2zM13 2h1v50h-1zM16 2h1v50h-1zM21 2h2v50h-2zM24 2h3v50h-3zM30 2h1v50h-1zM32 2h1v50h-1zM36 2h3v50h-3zM40 2h2v50h-2zM43 2h1v50h-1zM47 2h3v50h-3zM51 2h2v50h-2zM54 2h1v50h-1zM58 2h2v50h-2zM61 2h3v50h-3zM65 2h2v50h-2zM68 2h3v50h-3zM72 2h1v50h-1zM76 2h1v50h-1zM79 2h2v50h-2zM82 2h3v50h-3zM87 2h1v50h-1zM89 2h3v50h-3zM93 2h4v50h-4zM98 2h2v50h-2zM102 2h1v50h-1zM105 2h3v50h-3zM109 2h3v50h-3zM114 2h1v50h-1zM117 2h2v50h-2zM120 2h2v50h-2zM123 2h2v50h-2zM126 2h2v50h-2zM131 2h2v50h-2zM136 2h3v50h-3zM140 2h1v50h-1zM142 2h2v50h-2z" fill="#000" shape-rendering="crispEdges"/><g font-family="Arial, Helvetica, sans-serif" fill="#000"><text x="77" y="61.4" font-size="10" text-anchor="middle">TOOLS-2026</text></g></svg>Everything is generated in your browser; the code value is never sent to a server.