Codes for internal use

Barcode numbers with prefix 2 for your own products and weight codes for scales.
For your warehouse and your own shop — no GS1 membership needed.

Codes for internal use

EAN-13 numbers with prefix 20–29 and EAN-8 with prefix 2 for products without their own barcode, weight and price codes for label-printing scales, and reading a code from the scales.

Codes already in use — optional

Paste the codes from your database or spreadsheet — the new ones will not repeat them.

Codes are calculated in your browser and are not sent anywhere.

When internal codes are enough

An EAN-13 number for sale in any shop is issued by your national GS1 organisation. But for products sold only by you — your own bakery goods, goods sold by weight, gift sets, items that came without a barcode — internal codes are enough. GS1 reserved prefixes 20–29 of EAN-13 and 2 of EAN-8 for them: such numbers are never issued to manufacturers, so they cannot clash with a real product. Tills and accounting software read them like any other barcode. How exactly 20–29 are used is set by the GS1 organisation of each country.

How to use it

  1. “Series of codes”: choose the format and prefix, enter how many codes you need and click “Get codes”. If your database already has codes, paste them — the new ones will not repeat them.
  2. Note the “Next free code”: start the next series from it.
  3. Click “Make barcode images” — the codes open in the barcode generator, where you can print labels or download them as a ZIP.
  4. “Weight code”: choose the same layout and prefix as in your scales and enter the item number and weight. “Read a code” shows what a code from a label contains.

Weight and price codes

In a weight code the prefix is followed by the item number and the weight: the till takes the price per kilogram from its database and works out the total. A price code carries the price instead of the weight. GS1 Russia recommends prefixes 27 and 28 for weight codes and 23 and 24 for price codes, with a separate check digit for the weight or price; other countries have their own schemes. In practice scales are often set up more simply: prefix, 5 digits of item number and 5 digits of weight in grams. Whatever layout you choose, it must be the same in the scales and in your software.

Frequently asked questions

Can I sell products with a code starting with 2 in my shop?

Yes, that is what these codes are for: inside your company the till and the accounting work with them like with any other barcode. Just do not pass products with internal codes on to other shops — there the same number may mean a different product.

Will these codes work for marketplaces or product marking?

No. Marking systems such as Russia’s Chestny ZNAK need a real GTIN registered in the national catalogue — an internal code cannot be registered there. Marketplaces and retail chains also require a GTIN from GS1 or issue their own barcodes.

Which prefix should I choose?

It depends on your country’s GS1 rules. GS1 Russia, for example, recommends 20 for fixed-measure items, 23 and 24 for price codes and 27 and 28 for weight codes, keeping 21, 22, 25, 26 and 29 in reserve. The main thing is not to mix them: do not give the prefix of weight codes to regular products, or the till will try to read a weight where there is none. If your scales are already working, check their prefix in the settings.

Will there be enough numbers?

EAN-13 with one prefix has 10 billion numbers, EAN-8 with prefix 2 has one million. A series in sequence is convenient for bookkeeping; a random one is useful if the numbers should not show how many products you have.

How do I set up the scales and software for a weight code?

In the scales software you set the barcode layout: the prefix and how many digits the item number and weight take. In your accounting software you set the same prefix for goods sold by weight, and each item gets its number in the scales. You can check the setup here: paste a code from a label printed by the scales into “Read a code” — the item number and weight should match.

What is the weight check digit in GS1 Russia codes 27 and 28?

In this layout the weight or price is preceded by one more check digit calculated only from those five digits. It protects against a damaged barcode giving another, plausible total. It is calculated by GS1 rules; the tool does it for you.

More tools

Barcodes and marking

SSCC generator
Box and pallet codes, GS1-128 labels
Chestny ZNAK codes
Checking marking codes and printing DataMatrix
Code list comparison
Missing, extra, repeated codes
Barcode scanner test
GS, ]d2, Enter, layout; test codes
QR code
Link, text, contact card, e-mail, SMS
Barcode generator
EAN-13, Code 128, Data Matrix, PDF417, Aztec
Price tags and labels
Price tags, ingredients, thermal labels