happytails.ai

Barcode Generator

Turn a product code or text into a barcode.

Up to 1,000,000 characters. Review the settings before running.

Your result

How to use Barcode generator
  1. Enter your text in the input field.
  2. Review the settings, then choose Run Barcode generator.
  3. Review the result, then use Copy result or a download link when available.

Report a problem or share an idea.

Useful next steps

How Barcode generator works

This barcode generator turns your text or number into an SVG barcode using the JsBarcode library in your browser. Choose CODE128 for general text and numbers, CODE39 for simple uppercase codes, EAN-13, EAN-8 or UPC-A for retail products, or ITF-14 for shipping cartons. For the numeric retail formats, you can leave off the last digit and the tool calculates the check digit; if you type a wrong one, the code is rejected. The human-readable text is printed under the bars. It makes linear barcodes only, not QR codes, and exports SVG only.

Before you start

Check the length your format needs without the check digit: 12 digits for EAN-13, 7 for EAN-8, 11 for UPC-A and 13 for ITF-14. For products sold in stores, use a number assigned through GS1 rather than one you make up.

A worked example

Choosing EAN13 and entering 590123412345 produces barcode.svg reading 5901234123457, with the check digit 7 added. Entering 5901234123458, which has the wrong final digit, returns an error instead.

Continue your workflow: Barcode reader, QR code reader.

Common questions

Which barcode format should I use?

Use EAN-13 or UPC-A for products sold in stores, EAN-8 for very small packages and ITF-14 for outer shipping cartons. For internal labels, inventory and asset tags, CODE128 is compact and accepts letters, digits and symbols. CODE39 suits older scanners that expect uppercase letters, digits and a few symbols.

Do I need to enter the check digit?

No. For EAN-13, EAN-8, UPC-A and ITF-14 you can enter the number without its last digit, and the tool appends the correct check digit. For example, the UPC 03600029145 becomes 036000291452. If you include a check digit, it must be correct, or the tool reports that the input is not valid.

Can I make my own UPC or EAN numbers for products I sell?

The tool will draw any valid number, but retailers and marketplaces generally expect product numbers licensed through GS1, which ties each code to your company. A made-up number can clash with another product. For your own stock or shelf labels, CODE128 avoids that problem.

Why is my text rejected?

Each format has its own character set. EAN, UPC and ITF-14 accept digits only, in fixed lengths. CODE39 accepts A to Z, digits, spaces and - . $ / + %, and turns lowercase into uppercase, so an underscore fails. CODE128 accepts standard ASCII characters, so accented letters such as é are rejected.

How do I print the barcode at the right size?

The download is an SVG, a vector image that stays sharp at any size. Place it in your label or design software and scale it evenly, keeping the blank margin on both sides of the bars. Print a test label and scan it with the scanner you will actually use before printing a full batch.