Skip to content

EAN-8 barcode generator

Generate a valid EAN-8 barcode from 8 digits, a shortened version of EAN-13 designed for small packaging.

Processed on your device. Nothing is sent to any server.

Validates the check digit with the same algorithm as EAN-13 but over 8 digits, before generating the visual barcode.

Use cases

  • Generating barcodes for products with limited label space.
  • Verifying the check digit of an existing EAN-8 code.
  • Creating test codes for small packaging.

How it works

  1. 1

    Enter the 8 digits

    Including the final check digit.

  2. 2

    Download the SVG

    If the check digit is correct, the code is generated automatically.

Technical details

  • You must enter all 8 digits, including the check digit. If the last one doesn't match, you'll see a notice instead of the code.
  • The check digit comes from adding the first 7 digits with alternating weights of 3 and 1 and taking what's left to reach the next multiple of 10.
  • The tool draws the code and checks the check digit, but it doesn't assign codes: to sell in retail you need a code registered with GS1 to your company.
  • It downloads as SVG (vector), with the digits printed under the bars; the SVG scales for print without losing sharpness.

Frequently asked questions

When is EAN-8 used instead of EAN-13?

It's used on very small products where the full EAN-13 code doesn't fit, such as chewing gum or small cosmetics.

← QR & barcodes