Skip to content
ToolsOnDuty - free online tools
Image Tools

Barcode Generator

Create validated, print-ready barcodes with quiet-zone and label controls in PNG or SVG.

Free browser toolRuns in your browserNo sign-up
Valid CODE128 · raster output 0 × 0px. Preserve the quiet zone and test a printed sample before bulk production.

SVG is preferred for labels and print because it scales without blur. Dark bars on a plain light background scan most reliably.

About the Barcode Generator

Generate a barcode for a product, label or asset in seconds. Enter your value, pick a format such as CODE128, EAN-13 or UPC, and download the result as a PNG or SVG.

Adjust bar width, height, colours, quiet zone and label size. The tool validates input against each symbology, shows the raster dimensions and keeps scalable SVG available for print workflows.

Barcodes are drawn in your browser, so nothing you enter is uploaded to a server.

Key features

  • CODE128, CODE39, EAN, UPC, ITF, MSI and more
  • Custom size, colours, quiet zone and label typography
  • Exact PNG output dimensions and encoded-value copy
  • Download as PNG or SVG
  • Instant validation per format

How to use

  1. 1Enter the value you want to encode.
  2. 2Choose a barcode format and correct any format-specific validation error.
  3. 3Adjust bar width, height, quiet zone, colours and optional human-readable label.
  4. 4Download the barcode as a PNG or SVG.

Examples

Generate Code 128
Input: TOOLS-123
Output: Code 128 barcode as PNG or SVG

Code 128 supports letters, numbers and punctuation; other formats have stricter value rules.

Frequently asked questions

Which barcode format should I use?
CODE128 works for most general text and numbers. Use EAN-13 or UPC-A for retail products, and ITF-14 for shipping cartons.
Why does my value show an error?
Formats like EAN-13 and UPC require an exact number of digits. Check the hint under the value field for the format's requirements.
Can I print the barcode?
Yes. Prefer SVG so bars remain sharp, preserve the empty quiet zone, avoid resizing non-proportionally, and test a printed sample with the scanners used in production.
Does generating a retail barcode register a product number?
No. The tool only draws the value you provide. Official GTIN, EAN or UPC allocation and product registration must come from the appropriate standards organization.

Open a related tool to prepare your files or refine the finished result.