Works on this device
Lot Number Generator
Make the lot numbers of one production or receiving run by a format you can read: text at the start, a date part, a line or site code and a sequence number, with a check digit if you want one. You can also check typed lot numbers against the same format.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose the button below them.
Your result
How it was worked out
How to use this generator
- Choose to make lot numbers or to check lot numbers you have.
- Choose production lots or receiving lots, and type the text at the start, such as L or R.
- Choose the date part and the date of the run. Type the line, site, warehouse or dock code if you use one.
- Type the first sequence number, the number of digits, and how many lot numbers you need for the run. Choose a separator and a check character.
- Choose Generate. You see the range for the run, the format as a mask such as L-YYMMDD-P1-NNN, and where each part sits. Copy the list, or download it as a text or CSV file.
How a lot number is built
- Text at the start: such as L for lot or R for goods received, or an item code. Letters and digits only.
- Date part: the date of the run, as YYMMDD (261014), YYYYMMDD (20261014), DDMMYY (141026), YYDDD (the year and the day of the year: 26287), YYWW (the year and the ISO week: 2642) or YYYYMM (202610).
- Line or site code: such as P1 for plant 1, L2 for line 2, or W1 for a warehouse.
- Sequence number: the number of the lot in the run, with leading zeros, such as 001.
- Check character: Luhn mod 10, GS1 mod 10, ISO 7064 MOD 11-2 (a digit or X) or ISO 7064 MOD 97-10 (two digits). It is worked out from the digits of the date part and the sequence number and written right after the sequence number. It finds most typing mistakes.
Lot numbers, batch codes and order numbers
This page makes the lot numbers of one run: one date, one site code and a range of sequence numbers, with a format you can print beside the list. It also checks typed lot numbers against that format, for example at goods in.
For codes over several production days, with a batch number that starts again each day, and to read the date back from a batch code with a short year, use the Batch Code Generator. For purchase, sales and work order numbers, use the Order Number Generator. For product codes and the check digits of UPC, EAN and GTIN numbers, use the Product Code Generator.
Checking lot numbers
Type the lot numbers one on each line and set the same format. The page reads each one part by part. It shows the date it reads, the site code, the sequence number and the check character, and says what does not match: a missing separator, a date part that is not a real day or week, another site code, a sequence number of the wrong length, or a wrong check character. A year of two digits is read as 2000 to 2099.
Worked example
Plant 1 makes 10 lots on 14 October 2026. With the text L, the date part YYMMDD, the site code P1 and 3 digits, the lot numbers run from L-261014-P1-001 to L-261014-P1-010. The format is L-YYMMDD-P1-NNN.
With a GS1 check digit, the digits 261014001 are weighted 3, 1, 3 and so on from the right: 3 + 0 + 0 + 4 + 3 + 0 + 3 + 6 + 6 = 25, so the check digit is 5 and the first lot number is L-261014-P1-0015.
A warehouse that takes in goods on the same day, with R, YYDDD and the dock code W1, gets R-26287-W1-001: 14 October is day 287 of 2026.
Limits you should know
- The page does not keep a counter between visits and cannot see the lot numbers already in use. Start each run after the last sequence number of the same date and site, and keep a record.
- Rules for lot coding of food, medicines, medical devices or cosmetics are set by law and by your customers. The page follows the format you choose; check that it meets those rules.
- A check character finds most typing mistakes, but not all. A lot number that matches the format is not proof that the lot exists.
- Up to 5,000 lot numbers at a time.