Barcode Generator

Generate barcodes (Code 128, EAN, UPC and more) and download as PNG or SVG — free online.

About

About the Barcode Generator

Turns a value you type into a scannable barcode in the format you choose, ready to download as a PNG or SVG.

Small retailers use it to print barcodes for handmade or repackaged products, while warehouse and inventory staff use it to generate labels for internal tracking. It's one of many free generator tools on Toolapt, and like every tool here, it's free to use with no sign-up and no limit on how many times you run it.

Choose what to view about this tool

Guide

Using the Barcode Generator

  1. 1

    Step 1

    Type the value you want encoded.

  2. 2

    Step 2

    Pick the barcode format that matches what you need — CODE128, EAN-13 and more.

  3. 3

    Step 3

    The barcode draws automatically and updates as you type.

  4. 4

    Step 4

    Click Download PNG or Download SVG to save it, or Clear to start over.

  • Supports eight common formats: CODE128, EAN-13, EAN-8, UPC, CODE39, ITF-14, MSI and Pharmacode
  • Draws the barcode automatically as you type or change the format — no Generate button needed
  • Shows a clear error message when a value doesn't fit the rules of the chosen format, instead of drawing a broken code
  • Displays the human-readable value underneath the bars, as most printed barcodes do
  • Downloads as a PNG for quick use or an SVG for crisp, scalable printing
  • Works entirely in your browser — no installs and no sign-up
  • Free to use, with no limit on how many times you run it
  • Fully responsive, so it works just as well on a phone as on a desktop

Small retailers

Small retailers use the Barcode Generator for printing barcodes on handmade or repackaged products that don't already have one.

Warehouse and inventory staff

Warehouse and inventory staff use the Barcode Generator for creating labels to track stock internally.

Developers

Developers use the Barcode Generator for producing sample barcodes to test scanning or point-of-sale software.

Event organizers

Event organizers use the Barcode Generator for printing sequential ticket or asset codes in a scannable format.

Examples

Barcode Generator examples

3 worked examples

01

Flexible product code

Typing 123456789012 with format CODE128 draws a scannable barcode with that value shown as readable text underneath the bars — download it as barcode.png or barcode.svg.

02

Retail product code

Typing 5901234123457 with format EAN-13 draws a valid EAN-13 barcode, since 7 is the correct check digit for those 12 leading digits.

03

Invalid input caught

Typing 12AB with format EAN-13 shows "That value is not valid for the EAN13 format." instead of a barcode, since EAN-13 needs 12–13 digits, not letters.

FAQ

Frequently asked questions

Quick answers to common questions about the Barcode Generator.

What does the Barcode Generator do?

It turns a value you type into a scannable barcode image in the format you choose, which you can download as a PNG.

Is the Barcode Generator free to use?

Yes. It's free, with no sign-up, no watermark and no limit on how many barcodes you generate.

Is my value safe when I use this tool?

Yes. The value you type is drawn into a barcode entirely in your browser using a small library loaded from this site — it's never sent to a server.

Which barcode format should I use?

CODE128 handles almost any text or number and is the safest default; EAN-13/EAN-8/UPC are for standard retail product codes with a fixed digit count; CODE39, ITF-14, MSI and Pharmacode suit specific industrial or logistics uses.

Why does it say my value isn't valid for that format?

Formats like EAN-13 and UPC require an exact number of digits (often with a check digit), so a value that's too short, too long, or contains letters will be rejected — switch to CODE128 if you just need a flexible code.

Can I scan the barcode straight off my screen?

Yes, most barcode scanner apps and hardware scanners can read a barcode directly from a phone or monitor screen, though printing it usually scans more reliably.

Can I use the Barcode Generator on my phone?

Yes. The page is fully responsive and works on mobile, tablet and desktop browsers alike.

Does the Barcode Generator have any limitations?

It outputs a PNG or an SVG at the size the library draws by default — there's no custom bar colour option.

Still have a question? Contact us

Report a problem

Barcode Generator

What went wrong?
    or paste a screenshot