# Barcode scanner > How do I read a barcode? Read EAN, UPC and Code 128 barcodes with your camera or a photo, with the check digit verified. Read a barcode with your camera or a photo: EAN-13, UPC, Code 128 and more. Check the product number's check digit and read Finnish bank barcodes. A preset of [QR and barcode scanner](https://how.box/code-scan/). - Page: https://how.box/barcode-scan/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/barcode-scan/?f={f} - `f` (all, qr or linear): Codes to look for: all, qr (2D codes) or linear (barcodes). Example: `qr`. Example answer: https://how.box/barcode-scan/?f=qr The page computes the answer in the browser: read results from the agent tools below, not from the page HTML. ## Agent tools - `code_scan_inspect_text`: Explains the text of a scanned QR code or barcode before anyone acts on it: what it is and where a link really leads. - MCP: POST https://how.box/mcp `tools/call` with `{"name":"code_scan_inspect_text","arguments":{…}}`; input schema in https://how.box/agent-tools.json. ## How it works A product barcode is a number printed as bars. The scanner reads the bars into the digits and the last digit is a check digit: multiply the other digits alternately by 3 and 1, starting with 3 at the right, add them up, and the check digit is what brings the sum up to the next multiple of ten. Because the rule is so simple, a single misread digit almost always breaks it, which lets the reader tell a clean scan from a bad one. The common retail barcodes are EAN-13, EAN-8, UPC-A and UPC-E, and books use an EAN-13 that starts with 978 or 979 as their ISBN. Other linear codes such as Code 128, Code 39 and Codabar hold free text or an internal number that this check digit does not apply to. The Finnish bank barcode on invoices is a longer, 54-digit code. The check digit proves the number is well formed, not that the product exists: it says nothing about price, maker or stock, and the page never looks the number up. The table checks a few sample numbers; the example works one out step by step. ## FAQ **Which barcodes can it read?** EAN-13, EAN-8, UPC-A, UPC-E, Code 128, Code 39, Code 93, Codabar and ITF. Product numbers get their check digit verified, and ISBN numbers are marked as books. **Can it read a Finnish bank barcode on an invoice?** Yes. The 54-digit bank barcode shows the IBAN, amount, reference and due date. Compare them with the invoice before you pay. **Why does the check digit say Wrong?** Most often one digit was misread because of glare, a crease or a partial view. Scan again with the barcode flat and fully inside the frame. If it stays wrong, the number may be an internal code or invented. **Does the scanner tell me the product name or price?** No. It reads the number and checks that it is well formed, but never looks it up anywhere, so nothing about the product, the maker or the price is known to the page. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)