Chestny ZNAK marking codes

Checking codes from a scanner or an export, GS separator, codes for 1C and the API.
DataMatrix printing on labels of an exact size.

Chestny ZNAK marking codes

Check marking codes of the Russian Chestny ZNAK system from a scanner, 1C or an export: the tool splits them into parts, finds errors, restores lost GS separators and prints DataMatrix on labels of the right size. A new valid code cannot be created — only Chestny ZNAK issues them.

Codes with real GS characters work, as do codes with GS written as text — <GS>, [GS], \u001d — codes with the scanner prefix ]d2 and codes typed in the Russian keyboard layout.

Check

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

What a marking code consists of

Chestny ZNAK (“Honest Sign”) is Russia's mandatory product marking system. A marking code is a string of GS1 application identifiers. (01) is the 14-digit GTIN product number. (21) is the serial number of the item. Then comes the verification code, the “crypto tail”: for some products it is a 4-character key (91) and a 44- or 88-character verification code (92), for others a short 4-character code (93). Cigarette cartons also have the maximum retail price (8005). Variable-length fields are separated by the special GS character (ASCII 29), and DataMatrix starts with FNC1. The first two parts — (01) and (21) — are called the identification code: it is written in documents such as invoices.

How to use it

  1. Scan codes into the field or paste a list: from 1C, from a Chestny ZNAK export or from a CSV file.
  2. Look at the check: fields, a wrong GTIN check digit, a cut-off verification code, lost separators, the Russian keyboard layout of the scanner.
  3. Copy the fixed codes: with real GS characters for 1C, with \u001d for text files, identification codes only or Base64 for the API.
  4. To print, choose the label size, printer and dots per module, add the product name and press “Print labels”. You can also download all DataMatrix codes in a ZIP for label software.

What the tool does not do

It does not create new codes or check their status: codes are ordered in the Chestny ZNAK account, and whether a code has been put into circulation can be checked in the Chestny ZNAK app or through the operator's API. Ordinary EAN-13, Code 128 and GS1-128 barcodes are made by the barcode generator.

Further reading

Frequently asked questions

Why don't 1C or the cash register accept a scanned code?

Usually for one of three reasons. The scanner works as a keyboard in the Russian layout, and Latin letters turn into Cyrillic. The scanner does not pass the GS character, and the program cannot separate the serial number from the verification code. Or there is a ]d2 prefix at the start. Paste the code here — the tool shows what is wrong and gives a fixed version.

Can I generate a marking code here?

No. A valid code with a verification code is issued only by the Chestny ZNAK operator on an order from the account. Here you can check ready codes and print them as DataMatrix of the right size.

What size should DataMatrix be printed?

In this tool a code with key (91) and a 44-character verification code (92) becomes a 36 × 36 module square, a short code with (93) — 20 × 20. The module must be a whole number of printer dots: for a 203 dpi thermal printer 3 dots — 0.375 mm — is convenient, and then the long code with margins takes 15 mm, the short one 9 mm. Check the first label with a scanner before printing the whole batch.

What is the GS separator and why is it needed?

The serial number and verification key vary in length, so an invisible GS character with code 29 follows them. It tells the program where one field ends and the next begins. When copying through the clipboard or text files this character is often lost — the tool restores it from the code structure.

Can I scan codes with the phone camera?

Yes, if the browser can read codes — Chrome on Android, for example. Then Camera and From photo buttons appear under the input: point the camera at the codes one by one and each new one is added to the list. Recognition happens on the device; the image is not sent anywhere. In other browsers codes are entered with a scanner or pasted from a file.

More tools

Barcodes and marking

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
Codes for internal use
Barcodes with prefix 2 and weight codes
SSCC generator
Box and pallet codes, GS1-128 labels