API Tool Calls

Free barcode scanner

Scan with your camera, upload a photo or paste an image to read the code, product number, expiry date and lot.

Nothing is uploaded: your camera and photos never leave this browser. No account or sign up needed.

Or paste an image anywhere on this page. Up to 2 MB and 4000 by 4000 pixels.

Ready to scan.

Scan results

History on this browser

Track batches and expiry dates by scanning: Shelfdate.

Need to make a code? Use the free barcode generator.

Frequently asked questions

Does my photo leave my device?

No. Nothing is uploaded: your camera and photos stay in this browser. Scanning uses local code with no third-party loads. History is saved only in this browser.

What does a GS1 barcode tell me?

When present, GS1 fields show the product number (GTIN), use-by date and batch or lot. Day 00 means the last day of the month. Invalid dates are not guessed.

How do I scan a barcode?

Start the camera and point it at the whole barcode, upload a PNG, JPEG or WebP photo, or paste an image. Clear photos with space around the barcode work best.

Use it from an AI agent

This tool is also an MCP tool named read_barcode at https://apitoolcalls.com/mcp.

Call tools/call with a base64 image, up to 2 MB decoded and 4000 by 4000 pixels. Returns every code, its type, corner positions and GS1 fields when present.

{"name":"read_barcode","arguments":{"image":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMYAAACWCAIAAAAKd2D9AAABvElEQVR4nO3SMRKEIBAAweP+/2fMDCTBcozsDhVcsGbMOX/vGGNcnpyzzlfr9HXXun1dvHOL6jy3Zu2c+daInf/zcMRD/5e+y2dJipikiEmKmKSISYqYpIhJipikiEmKmKSISYqYpIhJipikiEmKmKSISYqYpIhJipikiEmKmKSISYqYpIhJipikiEmKmKSISYqYpIhJipikiEmKmKSISYqYpIhJipikiEmKmKSISYqYpIhJipikiEmKmKSISYqYpIhJipikiEmKmKSISYqYpIhJipikiEmKmKSISYqYpIhJipikiEmKmKSISYqYpIhJipikiEmKmKSISYqYpIhJipikiEmKmKSISYqYpIhJipikiEmKmKSISYqYpIhJipikiEmKmKSISYqYpIhJipikiEmKmKSISYqYpIhJipikiEmKmKSISYqYpIhJipikiEmKmKSISYqYpIhJipikiEmKmKSISYqYpIhJipikiEmKmKSISYqYpIhJipikiEmKmKSISYqYpIhJipikiEmKmKSISYqYpIhJipikiEmKmKSISYqYpIhJipikiEmKmKSISYqYpIhJipikiEmKmKSIHUQwKykW8tU9AAAAAElFTkSuQmCC"}}

You can also call make_barcode to make SVG barcodes, including GS1-128 and DataMatrix. Use make_qr for QR codes.

{"name":"make_barcode","arguments":{"text":"(01)05901234123457(17)270300(10)LOT-A","format":"gs1-128"}}

Free for 20 calls a day with no key; the $9.99/mo agent key gives 1,000 calls a month.

All tool arguments · Barcode generator arguments · Get an agent key

More tools

Images & PDFs

Text & codes

Fun & everyday

Money & jobs

All API Tool Calls tools