# Barcode generator: draw a symbol and download it

> Choose EAN-13, UPC-A, ITF-14, Code 128, Code 39 or Interleaved 2 of 5, set its size and download an SVG, PDF or PNG.

Canonical: https://dielinemaker.com/learn/barcode-generator
Last updated: 2026-11-10

Workspace · 6 min read

## Before you start

**What goes in:** A number or text you already have, such as an assigned GTIN or an internal SKU.

**What comes out:** A vector SVG, a CMYK vector PDF or a PNG of the symbol at a size you set.

**Example, A back-panel retail barcode:** Enter a GTIN you have been assigned, keep the standard quiet zone, check the size and download the SVG to place on the back panel.

Start here: [Open the barcode generator](https://dielinemaker.com/tools/barcode-generator)

## Step-by-step walkthrough

1. **Choose the symbology** — Under Symbology pick EAN-13 for retail worldwide, UPC-A for retail in the US and Canada, ITF-14 for shipping cases, Code 128 for SKUs and logistics, Code 39 for industrial labels or Interleaved 2 of 5 for warehouse cartons.
2. **Enter the value** — Read the hint under the field. For EAN-13, UPC-A and ITF-14 you can type the number without its check digit and it is added, or paste the full number to verify it. This tool draws a symbol for a number you already have; it does not issue numbers.
3. **Set the size** — Under Size set Magnification or Module width (X), and Bar height. The preview shows the real size in millimetres.
4. **Check the quiet zone and options** — Keep the standard Quiet zone unless you deliberately choose Custom or None. Set Bar width reduction only from printer guidance. Bearer bars are for ITF-14, and a mod 43 check character and extended mode are for Code 39.
5. **Choose colours and text** — Use dark bars on a light background. Choose Show the digits under the bars and, for EAN-13, the Light-margin indicator if you need them. Transparent background removes the background fill.
6. **Download and place it** — Download SVG or PDF for vector placement, or PNG at 300, 600 or 1200 dpi. Use Put it on your packaging to open the editor, or add a code to a panel with Design → Elements.

## Options at a glance

| Control or choice | What it means | Advice |
| --- | --- | --- |
| Symbology | The type of symbol: EAN-13, UPC-A, ITF-14, Code 128, Code 39 or Interleaved 2 of 5. | Use the one your retailer or carrier asks for. |
| Value | The digits or text to encode. | Fix the source value rather than accepting a guessed correction. |
| Size | Magnification or module width, and bar height. | Keep enough height and clear space for the scanner. |
| Print options | Quiet zone, bar width reduction, bearer bars and Code 39 options. | Change them only for a reason you can state. |
| Download | SVG, PDF or PNG at a chosen resolution. | Prefer vector for print. |

## Detailed control reference

### Symbology

- Where: Barcode generator → Symbology
- Effect: Chooses one of six symbologies, each with a hint about its use and its allowed characters.
- Use it for: Pick the symbology the receiving system expects.
- Impact: A symbol that does not match the receiver’s requirement will not scan correctly in that workflow.

### Value and check digit

- Where: Barcode generator → value field
- Effect: EAN-13 accepts 12 digits and adds the check digit, or 13 to verify. UPC-A accepts 11 or 12. ITF-14 accepts 13 or 14. Code 128 takes printable ASCII. Code 39 takes A–Z, 0–9, space and - . $ / + %. Interleaved 2 of 5 takes an even number of digits.
- Use it for: Type or paste the value and read any message under it.
- Impact: A valid check digit does not prove the number is assigned to your product.

### Magnification and Module width (X)

- Where: Barcode generator → Size
- Effect: Sets how large the symbol is, either as a percentage for retail symbols or as the width of the narrowest bar.
- Use it for: Use the printer’s guidance and check the millimetre size in the preview.
- Impact: Too small a symbol is hard to scan.

### Bar height

- Where: Barcode generator → Size
- Effect: Sets the height of the bars.
- Use it for: Keep it tall enough for the receiving scanner.
- Impact: Shortening the bars makes the code harder to scan at an angle.

### Quiet zone

- Where: Barcode generator → Print options → Quiet zone
- Effect: Standard, Custom or None sets the clear space around the symbol, with Each side in modules for Custom.
- Use it for: Keep Standard unless your layout already reserves the space.
- Impact: Artwork, folds or die cuts inside the quiet zone can stop the code scanning.

### Bar width reduction

- Where: Barcode generator → Print options
- Effect: Makes every bar thinner by a fixed amount to allow for ink spread.
- Use it for: Ask your printer for the value for your press and stock.
- Impact: The wrong value makes bars too thin or too thick.

### Bearer bars, mod 43 and extended mode

- Where: Barcode generator → Print options
- Effect: Bearer bars frame an ITF-14 symbol. Add a mod 43 check character and Extended mode (lower case) apply to Code 39.
- Use it for: Turn on only what the receiving system requires.
- Impact: A receiver that does not expect them may reject the code.

### Bars, Background and Transparent background

- Where: Barcode generator → Colours
- Effect: Sets the bar colour and background, or removes the background.
- Use it for: Start with dark bars on a light background.
- Impact: Low contrast or red bars can fail to scan; the scan checks under the preview point out problems.

### SVG, PDF and PNG resolution

- Where: Barcode generator → Download
- Effect: SVG is a vector file. PDF is a CMYK vector file. PNG is a raster image with a PNG resolution of 300, 600 or 1200 dpi.
- Use it for: Choose a vector file for print and PNG only for a raster workflow.
- Impact: A PNG records its resolution so layout apps place it at the right size.

## Where the number comes from

Retail symbols carry a GTIN built from a company prefix that your business licenses from its national GS1 organisation. The generator draws a symbol for a number you already have and works out the check digit.

## Using it in the packaging editor

You can place the downloaded SVG or PDF in your own artwork, or add an editable code to a panel in the editor. See the barcodes and QR guide for placing, quiet zones and scan testing of the printed result.

## Check your work

- The symbology matches the receiver’s requirement.
- The value is correct and, for GTINs, assigned to your product.
- The quiet zone is clear of artwork, folds and cuts.
- The code was scan-tested from a printed proof.

## Troubleshooting

### The tool refuses my number

Read the hint for that symbology: length, allowed characters and whether the check digit is added or verified.

### The code does not scan after printing

Check the size, the quiet zone, the contrast and the bar width reduction with your printer, then proof again.

### I need a code that links to a web page

Use a QR code instead. See the QR code generator guide.

## Related

- [Barcode generator: values, size and print options](https://dielinemaker.com/learn/barcodes-and-qr)
- [QR codes: content, styling, logos and scan testing](https://dielinemaker.com/learn/qr-code-generator)
- [Upload artwork, place it on faces and manage layers](https://dielinemaker.com/learn/artwork-and-layers)
- [Print checks, dielines, PDFs and the production handoff](https://dielinemaker.com/learn/print-checks-and-exports)
- [All guides](https://dielinemaker.com/learn)
