Explore Dika Ops

Free barcode generator for EAN, UPC, Code 128 and more

Draw a print-ready barcode, check the digit and download it as PNG or SVG in your browser.

Free Runs in your browser No sign-up

Appearance
1 to 4 px per module.
30 to 250.
#000000
#ffffff

How to create a barcode

Choose the format that matches where the product or label will be scanned, enter the value and download the result. The tool validates as you type.

  1. Select the barcode format Pick EAN-13, EAN-8, UPC-A, Code 128, Code 39 or ITF-14. A rule below the field explains what that format accepts.
  2. Enter the value Type the digits or text. For EAN, UPC and ITF-14 you can leave out the check digit and it is added for you.
  3. Read the check digit The readout shows the check digit as calculated or verified, so you can confirm that a number you already have is valid.
  4. Adjust the bars Set the bar width from 1 to 4 pixels and the height from 30 to 250 pixels to fit your label.
  5. Choose colours and text Keep dark bars on a light background, and decide whether the number is printed under the bars.
  6. Download PNG or SVG Use SVG for print because it stays sharp at any size. PNG is fine for screens and documents.
  7. Test the printed result Scan a printed sample with the scanner or app that will be used in practice.

Tips for barcodes that scan reliably

  • Keep plenty of blank space to the left and right of the bars, since scanners need that margin.
  • Print at the size recommended for your format and avoid shrinking below it to squeeze a label.
  • Use black bars on white, because red and light colours often fail under laser scanners.
  • Print on a matte surface where you can, as glare from glossy film can blind a scanner.
  • Do not stretch the image in only one direction, because bar ratios must stay exact.

Common barcode mistakes

  • Making up retail numbers A number that looks valid is not registered to you. Retail products need genuine numbers from the proper issuer.
  • Wrong length EAN-13 needs 12 or 13 digits and UPC-A needs 11 or 12. The tool tells you when the count is wrong.
  • Typing the check digit wrongly A single wrong digit makes the check fail. Enter the number without it and let the tool calculate.
  • Using the wrong format Code 39 cannot hold lower case letters natively, and EAN formats cannot hold letters at all.

Open it pre-filled with a link

Every field accepts a query parameter with the same name, so a link, a script or an AI agent can fill the tool in and run it. Open an example: /tools/barcode-generator/?format=ean13&data=590123412345

ParameterValuesWhat it does
formatean13 · ean8 · upca · code128 · code39 · itf14 (default: ean13)Barcode format: ean13, ean8, upca, code128, code39 or itf14.
datatextThe value to encode. For EAN-13, EAN-8, UPC-A and ITF-14 you may leave out the check digit; it is added and shown.
widthnumber (default: 2)Bar width in pixels, 1 to 4.
heightnumber (default: 100)Bar height in pixels, 30 to 250.
text1 or 0 (default: 1)1 to print the value under the bars, 0 to hide it.
fg#rrggbb (default: #000000)Bar colour as #rrggbb (write the # as %23 in a URL).
bg#rrggbb (default: #ffffff)Background colour as #rrggbb (write the # as %23 in a URL).

Have a project in mind? Let us talk it through.

Tell us what you want to build or improve. We reply with a clear next step.