Free tools that run in your browser. Use any tool without an account.

Favourites Cart
Sign in
Join free

Barcode Generator

  • Free
  • Runs in your browser
  • No account needed

FreeToolr's Barcode Generator creates Code 128, EAN-13, UPC-A, EAN-8, Code 39, and ITF-14 images. Enter your value, such as 4006381333931, adjust height and bar width, then download PNG or SVG directly to your device.

EAN and UPC check digits are added for you. Real retail barcodes need a company prefix from GS1; this tool draws the code, it does not register a number.

Runs in your browser. Your files and values are not sent to us. Report a problem
Advertisement

About the Barcode Generator

This free barcode generator creates 1D barcode images for product labels, stock records, cartons, internal IDs and other business tasks. You choose Code 128, EAN-13, UPC-A, EAN-8, Code 39 or ITF-14, then enter the value required by that format. Adjust the barcode height and bar width to suit your label or document. The tool adds EAN and UPC check digits automatically when needed. You can download the result as a PNG or SVG file. FreeToolr runs the generator in your browser, so your value and files are never uploaded. Downloads go straight to your device. Unlike a number registration service, this tool only creates the barcode image. It does not register GS1 numbers or prove that a retail number belongs to your business. Use an assigned GS1 number for products sold through retailers or marketplaces.

How to use it

  1. 1Choose a barcode type from Code 128, EAN-13, UPC-A, EAN-8, Code 39 or ITF-14.
  2. 2Enter the barcode value in the input field.
  3. 3Set the barcode height and bar width.
  4. 4Download the finished barcode as a PNG or SVG file.
Advertisement

Worked example

For EAN-13 value 4006381333931, enter all 13 digits. The final digit, 1, is the correct check digit for the first 12 digits, 400638133393. The tool creates the barcode image and lets you download it as PNG or SVG.

How it works

GS1 GTIN check-digit method: 1Take all digits except the final check digit. 2Starting from the digit nearest the check digit, multiply alternating digits by 3 and 1The nearest body digit uses 3, the next digit left uses 1, and the pattern continues. 3Add the products. 4Check digit = (10 - (sum mod 10)) mod 10. Equivalent pseudocode: body = digits_without_check_digit total = 0 for position, digit in enumerate(right_to_left(body)): total += digit * (3 if position is even else 1) check_digit = (10 - (total % 10)) % 10 Validation rule: (sum of weighted body digits + check digit) mod 10 = 0 This method applies to GS1 GTIN check digits, including GTIN-8, GTIN-12 or UPC-A, GTIN-13 or EAN-13, and GTIN-14It is not the encoding algorithm for Code 128, Code 39 or QR codes

Source: GS1 General SpecificationsGS1 US Check Digit CalculatorGS1 trade-item barcodes. Last checked 4 November 2026.

What it is good for

  • Creates six common 1D barcode formats.
  • Adjusts height and bar width before download.
  • Processes values in your browser without uploads.
  • The tool creates barcode images but does not register GS1 numbers.
  • It provides PNG and SVG downloads, not bulk files, label sheets or PDF output.
Advertisement

Questions people ask

What is a barcode generator?

A barcode generator turns text or numbers into a machine-readable barcode image. It creates the image, but it does not assign or register a unique product number.

Can I create a UPC-A or EAN-13 barcode for free?

Yes. FreeToolr creates the barcode image at no cost. A real retail GTIN should come from GS1 or the relevant authorized numbering organization.

Should I use UPC-A or EAN-13?

UPC-A is a 12-digit retail format commonly used in the United States and Canada. EAN-13 is a 13-digit retail format commonly used outside North America, but follow your retailer or marketplace requirements.

Which barcode type should I choose for shipping?

Code 128 is commonly used for internal shipping and logistics labels. ITF-14 is commonly used for outer cases, while structured GS1 data may require GS1-128, which this tool does not create.

Does the generator register a GS1 number?

No. It creates a barcode image and calculates applicable check digits. It does not register a GS1 company prefix, GTIN or other official identifier.

Why might my barcode be invalid?

The selected format may require a fixed digit count, allowed characters or a correct check digit. For example, UPC-A uses 12 digits and EAN-13 uses 13 digits.

Can I use a barcode for a website URL?

These supported 1D formats are mainly suited to numbers and short text. A QR Code or another 2D format is usually better for URLs, but this tool does not create QR codes.

Help keep every tool free

FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.

Advertisement
Advertisement