# Barcode generator > How do I make a barcode? EAN-13, EAN-8, UPC-A, Code 128 and Finnish bank barcodes, ready to download. Make an EAN-13, EAN-8, UPC-A or Code 128 barcode, or a Finnish bank barcode for an invoice. The check digit is added for you. Download a PNG or SVG. - Page: https://how.box/barcode/ - 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/?f={f}&v={v}&iban={iban}&r={r}&sum={sum}&due={due}&vc={vc}&t={t}&x={x} - `f` (ean13, ean8, upca, code128 or fi-bank): Barcode format: ean13, ean8, upca, code128 or fi-bank. Example: `ean13`. - `v` (text): The digits or text to encode (not used by fi-bank). Example: `400638133393`. - `iban` (text): fi-bank: payee IBAN; personal, left out of links by default. Example: `FI7944052020036082`. - `r` (text): fi-bank: Finnish or RF reference; personal. Example: `868516259619897`. - `sum` (number 0 to 999999.99): fi-bank: amount in euros; personal. Example: `4883.15`. - `due` (text): fi-bank: due date YYYY-MM-DD; personal. Example: `2026-06-12`. - `vc` (text): fi-bank: a 54-digit virtual bank barcode; personal. Example: `479440520200360820048831500000000868516259619897100612`. - `t` (boolean): Print the digits under the bars (1) or not (0). Example: `true`. - `x` (number 0.25 to 1): Narrowest bar width in mm (0.25–1). Example: `0.33`. Example answer: https://how.box/barcode/?f=ean13&v=400638133393&iban=FI7944052020036082&r=868516259619897&sum=4883.15&due=2026-06-12&vc=479440520200360820048831500000000868516259619897100612&t=1&x=0.33 The page computes the answer in the browser: read results from the agent tools below, not from the page HTML. ## Agent tools - `barcode_make`: Make a linear barcode and show it on the page, ready to download. - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"barcode_make","arguments":{"format":"ean13","value":"400638133393","iban":"FI7944052020036082","reference":"868516259619897","amount":4883.15,"due":"2026-06-12","virtual_code":"479440520200360820048831500000000868516259619897100612","digits":true,"module_mm":0.33}}}` - GET: https://how.box/mcp/run/barcode_make?format=ean13&value=400638133393&iban=FI7944052020036082&reference=868516259619897&amount=4883.15&due=2026-06-12&virtual_code=479440520200360820048831500000000868516259619897100612&digits=true&module_mm=0.33 ## How it works A barcode stores digits or text as a row of dark bars and light spaces of a few set widths. A scanner measures the widths and turns them back into the same characters. Light margins on both sides tell the scanner where the code starts and ends. EAN and UPC numbers end in a check digit that catches typing mistakes. Multiply the digits from the right alternately by 3 and 1, add them up, and the check digit is what brings the sum to the next multiple of 10. For 400638133393 the weighted sum is 89, so the check digit is 1 and the full EAN-13 is 4006381333931 (GS1 General Specifications). Code 128 has its own check character and packs pairs of digits into one symbol, so long numbers stay short (ISO/IEC 15417). The Finnish bank barcode is a 54-digit virtual barcode that holds the payee's IBAN, the amount, the reference number and the due date, printed as Code 128. It follows Finance Finland's bank barcode guide (Pankkiviivakoodi-opas); a banking app reads it to fill in a payment. A made-up EAN may already belong to someone else's product, which is why shops ask for GS1-issued numbers. Size matters too: EAN-13 is designed for bars 0.33 mm wide, and a code printed much smaller may not scan. ## FAQ **Can I sell products with a barcode made here?** Only with a number you own. Shops expect GS1-issued product numbers; join GS1 in your country to get a company prefix, then make the barcode for your number here. **What's the difference between EAN-13 and UPC-A?** UPC-A is the 12-digit North American version. Every UPC-A is an EAN-13 with a leading zero, and scanners worldwide read both. **Why was a digit added to my number?** EAN and UPC numbers end in a check digit. If you type the number without it, it's calculated and added. If you type it, it's verified, and a wrong one is shown with the right digit. **Which size should I print?** Use 0.33 mm for EAN-13 at its standard size. GS1 allows about 80 % to 200 % of that in retail. Larger codes scan more easily; very small ones may fail. **Are my bank details saved anywhere?** No. The barcode is made on your device. The account, reference, amount and date are kept out of the page address and out of copied links unless you include them. **Should I choose PNG or SVG?** SVG stays sharp at any size and prints at the chosen bar width. PNG is an image at about 300 dpi for documents and labels; don't scale it up. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)