About EAN-13 Barcode
EAN-13 Barcode generates structurally valid thirteen-digit product numbers. Set a count and press the calculate button, and the page returns that many codes, one per line, each exactly thirteen digits with no spaces or dashes - the plain numeric form rather than the striped image.
Each code is built the way a real EAN-13 number is. The first twelve digits are random, with the leading three drawn between one hundred and nine hundred and ninety-nine, and the thirteenth is a check digit computed so that the weighted sum passes the EAN-13 rule: digits in odd positions count once, digits in even positions count three times, and the check digit rounds the total up to a multiple of ten. The result is a number that a checksum verification will accept, which is what makes it useful for testing a scanner, a validation routine or a label layout without real product data.
The prefix is out of your hands. The first three digits are drawn at random rather than chosen, so a code cannot be tied to a country prefix or a company prefix the way registered GS1 numbers are - these are test values for layout and checksum practice, not identifiers for real products. Keep them out of anything that has to scan against a live catalogue.
Two smaller behaviours are worth knowing. A count outside the window from one to one hundred is silently clamped to the nearest end rather than refused, so asking for two hundred quietly returns one hundred. And uniqueness is not guaranteed, because the draws are independent - a large batch can contain the same thirteen digits twice, with no de-duplication on offer, so sort and remove repeats if each code has to be distinct. The page also produces the numbers and not the bars: there is no graphic barcode, nothing to print and nothing to download as an image, so turning a code into a scannable label needs another tool.
How to use EAN-13 Barcode
- 1 Set the count of codes you want, from one to one hundred.
- 2 Press calculate to generate that many EAN-13 numbers.
- 3 Copy the list, one code per line, for a test fixture or a checksum check.
- 4 Remove duplicates first if each code has to be unique.
Frequently asked questions
Are these real, scannable barcodes?
They are valid numbers, not images. Each line is a thirteen-digit EAN-13 code whose check digit passes the standard rule, so a validation routine accepts it, but there are no bars to render or print - the page returns the numeric form only.
Can I control the country or company prefix?
No. The first three digits are drawn at random between one hundred and nine hundred and ninety-nine, so a code cannot be tied to a particular GS1 prefix. These values are for testing layout and checksums, not for registering or identifying products.
What if I ask for more than one hundred codes?
The count is clamped to the nearest end of the allowed window instead of being rejected, so a request for two hundred quietly returns one hundred and a request for zero returns one. Keep the value between one and one hundred to avoid the surprise.
Will every code in a batch be different?
Not necessarily. The values are drawn independently, so the same thirteen digits can appear twice in a large batch and there is no de-duplication. Sort the output and remove repeats if uniqueness matters for your test.
Free, online, and private
Free to use
EAN-13 Barcode is completely free. There is no account to create, no login, and no hidden charge or usage limit.
Runs online in your browser
It is a free online tool that runs entirely in your browser. Nothing to download or install — open the page and start using it right away.
Your data stays private
All processing happens locally on your device. Your input is never uploaded, stored, or tracked, so it never leaves your browser.
How EAN-13 Barcode behaves in detail
These are the specifics of this implementation — the exact ranges, defaults and fixed settings you are working with.
| Parameter | Value |
|---|---|
| Input | one number field labelled Count, starting at ten and limited by the form to the window from one to one hundred |
| Output | that many EAN-13 numbers, one per line, each exactly thirteen digits with no spaces or dashes |
| Structure | the first twelve digits are random, with the first three drawn between one hundred and nine hundred and ninety-nine |
| Check digit | the thirteenth digit is computed so the weighted sum passes the EAN-13 rule - digits in odd positions count once, digits in even positions count three times, and the check digit rounds the total up to a multiple of ten |
| Validity | every line is a structurally valid EAN-13 number that a checksum verification would accept |
| Button | the result appears when the calculate button is pressed; the fields do not recalculate as you type |
Compiled from the implementation of this tool and checked against it by itoolnet.
What EAN-13 Barcode does not do
Knowing the edges of a tool saves more time than another list of its features. These are the cases where it will not do what you might expect.
- Numbers only, never bars. The page produces the thirteen-digit codes and not the striped image - there is no graphic barcode, no downloadable picture and nothing to print, so turning a code into an actual label needs another tool.
- The prefix is out of your hands. The first three digits are drawn at random between one hundred and nine hundred and ninety-nine, so a code cannot be tied to a country prefix or a company prefix the way registered GS1 numbers are - these are test values for layout and checksum practice, not identifiers.
- A count outside the stated window is silently clamped to the nearest end rather than refused, and uniqueness is not guaranteed - one hundred independent draws can return the same thirteen digits twice, with no de-duplication on offer.
Tested and documented by itoolnet, the team that builds and maintains this site.