Barcode Developer Tools
Three debugging jobs that come up whenever barcodes meet code: are these two values the same product number, why will this photo not decode, and what exactly does the lookup endpoint return?
Barcode developer tools
Compare two values, screen a photo for the defects that break decoding, and read the exact contract of the product-lookup endpoint. Everything runs in the tab except the endpoint example, which is documented — not called — on this page.
Compare two barcode values
HRI strings are reduced to their element string before comparing, so a parenthesised label and a scanner’s raw output can be compared fairly.
Different values, one is a prefix of the other
- GTIN-14 A
- —
- GTIN-14 B
- 09506000134352
- Common prefix
- 0 characters
- Common suffix
- 1 character
| Index | A | B |
|---|---|---|
| 0 | ( | 0 |
| 1 | 0 | 9 |
| 2 | 1 | 5 |
| 3 | ) | 0 |
| 4 | 0 | 6 |
| 5 | 9 | 0 |
| 6 | 5 | 0 |
| 8 | 6 | 1 |
| 9 | 0 | 3 |
| 10 | 0 | 4 |
| 11 | 0 | 3 |
| 12 | 1 | 5 |
| 13 | 3 | 2 |
| 14 | 4 | ∅ |
| 15 | 3 | ∅ |
| 16 | 5 | ∅ |
| 17 | 2 | ∅ |
| 18 | ( | ∅ |
| 19 | 1 | ∅ |
| 20 | 0 | ∅ |
| 21 | ) | ∅ |
| 22 | L | ∅ |
| 23 | O | ∅ |
| 24 | T | ∅ |
| 25 | - | ∅ |
| 26 | 4 | ∅ |
| 27 | 2 | ∅ |
- The values are different lengths (28 and 14 characters), which already rules out an identical GTIN.
Why will this photo not scan?
Upload a photo of a printed symbol. The analyser measures module width, contrast, quiet zone and cropping, and explains which one is the problem.
Product lookup endpoint
The only barcode-related JSON endpoint this site exposes. It is a proxy, not an open API.
GET /api/product-lookup?gtin=3017620422003
200 { status: "found", product: { ... }, disclosure: "..." }
400 { status: "invalid", message } // not a GTIN with a valid check digit
404 { status: "not-found", message }
429 { status: "rate-limited", message, retryAfterSeconds } // + Retry-After
502 { status: "error", reason: "upstream" | "network" | "response", message, upstreamStatus? }
504 { status: "error", reason: "timeout", message }The endpoint accepts only a GTIN: batch codes, images and arbitrary text are rejected so it cannot be used as a general-purpose fetch proxy. Responses are cached for a short time and every visitor is rate-limited. Data is Open Food Facts under ODbL; images are CC-BY-SA.
Review symbology normalisation, quiet-zone rules and why screen analysis differs from ISO/IEC 15416 verification in the barcode guide.
Processed on your device. Tool inputs are not uploaded or saved by QUICKKIT.
Barcode Developer Tools: what each check measures
Three separate debugging jobs: whether two values really are the same number, why a photographed symbol will not decode, and what the product-lookup endpoint returns when it fails.
Values and images stay in page memory. Only the product-lookup route contacts a third party, and only when you run that lookup.
Debug a barcode problem in three steps
- Compare the values first. A parenthesised HRI label and a scanner's raw output are normalised before comparison, so (01)09506000134352 and 09506000134352 are reported as the same GTIN rather than as different strings.
- Screen the image if a photo will not scan. The analyser measures pixels per module, contrast ratio, quiet zone and whether ink touches an edge — the four defects that account for most failed mobile scans.
- Read the failure as a defect, not a grade. A 1-pixel module is a real problem; a 2.4:1 contrast ratio is a real problem. Neither number is an ISO/IEC 15416 or 15415 grade, and the tool says so on the result.
- Use the endpoint section as documentation. It lists the exact status codes the product-lookup proxy can return, so a client can tell a missing product from a rate limit from an upstream outage.
Developer questions, answered
Is the image analyser a barcode verifier?
No. A verifier measures symbol contrast, modulation, defects and decode under calibrated lighting with a defined aperture, and issues a grade under ISO/IEC 15416 for linear symbols or ISO/IEC 15415 for 2D symbols. This tool measures pixels per module, WCAG-style contrast ratio, quiet zone in pixels and edge cropping. Those catch the common printing and photography mistakes, but they are not a grade and must not be presented as one.
Why do two identical-looking values compare as different?
Usually one of them carries a check character or a normalisation difference the other does not: a Code 128 check digit, a trailing space, a full-width character, or a UPC-A versus EAN-13 notation of the same number. The comparison table shows the first differing index and the differing characters, which identifies the offending character immediately.
What does 'same GTIN, different notation' mean?
It means both values are the same product number written with different zero padding — a common difference between a 12-digit UPC-A and its 13-digit EAN form, or a 13-digit GTIN and its 14-digit form. They will scan to the same product, so the comparison reports them as the same GTIN rather than as a mismatch.
Why does a valid GTIN still fail the check-digit test in the comparison?
Because the last digit is not the check digit for the preceding ones, or the number is 7, 9, 10 or 11 digits long and therefore not a GTIN at all. The table reports the expected digit, which makes a transcription error visible; it never silently 'fixes' the value.
Does any of this upload my data or photo?
No. The comparison runs in memory, and the image is read through a canvas element inside the tab. The endpoint section is static documentation — this page does not call it.
Barcode Developer Tools: how it compares, and when to use something else
Barcode Developer Tools compared against a hosted code generator or lookup service — what runs locally in this workspace, what rules are enforced, and where another kind of tool is the better fit.
Use Barcode Developer Tools on QUICKKIT when you want a fast, browser-based workflow without creating an account or handing inputs to a third-party queue; choose a hosted code generator or lookup service when you need a gs1-licensed company prefix, a gtin allocation, or a gs1 verification certificate for a retail listing..
