Create a EAN-13 barcode for 13-digit product identifiers for retail packaging. Enter a suitable value, inspect the generated preview and save an SVG or PNG image. The tool is free to use without creating an account.

FREE ONLINE TOOL No account required

EAN-13 Barcode Generator

International retail product codes

When to use EAN-13

EAN-13 is a retail barcode for a thirteen-digit identifier, commonly called a GTIN-13. It is suitable when your trading partner or product system requests that exact identifier format. Unlike an internal SKU label, the number should come from an authorised source for the product being sold. The artwork is only the machine-readable representation of that number, and does not create or change its ownership.

Input rules and supported data

Supply twelve numeric base digits to calculate the thirteenth check digit, or supply a complete thirteen-digit value for validation. Copy digits without spaces or hyphens and preserve any leading zero. Do not shorten a longer identifier simply to fit the field. If you have an eight-digit code, use EAN-8; if you have a carton-level GTIN-14, review the ITF-14 tool and the receiving workflow.

How to create your EAN-13 image

  1. Copy the intended identifier or text into the input field, keeping meaningful zeros and punctuation.
  2. Choose a scale appropriate for a clear preview. For linear formats, choose the bar height as well.
  3. Select the generate button and read any input message before using the displayed image.
  4. Download the result and check the decoded contents with equipment that supports this barcode format.

Worked example

Example input: 4006381333931. The base 400638133393 receives check digit 1. The complete example is useful for checking that your generator, downloaded image and scanner agree on the same thirteen digits. Replace it with your own authorised product number for actual packaging.

Choosing SVG, PNG or a printed copy

Choose SVG when placing the image into a design or print workflow that accepts vector artwork. Choose PNG for software that expects a raster image. Keep the complete symbol and its surrounding clear area in either format. The readable caption is useful for a person checking the label, but the scanner reads the encoded pattern. After changing the input, generate a fresh image rather than reusing an earlier download.

Preserve the proportions of the bars and spaces, and leave the clear margins at both ends intact. Do not stretch the width independently or crop the symbol to fit a smaller label. Test a sample at the actual printed size on the intended material. Printer resolution, contrast, surface texture and the scanner’s working distance can affect a physical scan.

Troubleshooting this format

If thirteen digits are rejected, use the check-digit calculator to compare the expected final digit and recheck your source. If the barcode image is readable but a scanner display adds or removes digits, review its EAN/UPC output configuration before changing the artwork. Retail validation and symbol readability are separate checks.

Frequently asked questions

How many digits should an EAN-13 input contain?

This generator accepts twelve base digits or thirteen digits including a valid check digit. It calculates the final digit only when you supply the twelve-digit base.

Can I turn an internal SKU into EAN-13?

An arbitrary SKU is not automatically an authorised GTIN-13. Use Code 128 for internal text identifiers unless a retail workflow has assigned you a suitable product number.

Why can a scanner show a leading zero?

EAN/UPC scanners can apply output conversion settings. Compare the scanner configuration with the complete identifier in your product records before deciding that the encoded value is wrong.

Data handling and related tools

Barcode rendering happens in your browser after the required rendering library loads. The website and its content delivery providers still receive normal page requests, so this is not a claim that the whole website has no network activity. Avoid confidential test data and review the privacy policy for service details.

Use the barcode scanner to check supported images, or browse the complete barcode tool directory for a different format. For technical encoder information, see the BWIPP symbology reference.