Embed the barcode scanner

Put a working barcode and QR scanner on your own site with one snippet. It is free, needs no API key and decodes on the visitor’s device.

Last updated

Copy this code

<iframe
  src="https://onlinebarcodescanner.com/embed"
  title="Barcode scanner"
  width="100%"
  height="760"
  style="border:0;max-width:560px;display:block;margin:0 auto"
  allow="camera; clipboard-write; web-share"
  loading="lazy"></iframe>
<p style="text-align:center;font:13px system-ui,sans-serif">
  Barcode scanner by
  <a href="https://onlinebarcodescanner.com/">Online Barcode Scanner</a>
</p>

Paste it where the scanner should appear. It works in plain HTML, WordPress (Custom HTML block), Shopify, Webflow, Wix and Notion-style embeds that accept an iframe.

What visitors get

The widget is the full scanner in a narrow layout: camera scanning on phones and laptops, scanning from an uploaded image or PDF, typed codes with check digit validation, product names for UPC, EAN and ISBN codes, and copy, search and export of the results.

Things to know

Keep allow="camera" in the snippet. Browsers block the camera inside an iframe without it, and your page has to be served over https. The height of 760 pixels shows the scanner and the first result, so raise it if you expect long result lists.

Images and video are decoded in the visitor’s browser and are not uploaded (details on the privacy page). The one thing we ask in return is that you keep the credit line under the iframe.

Preview

This is the widget exactly as it appears when embedded:

Want the full tool instead?

Link straight to the online barcode scanner, or to a specific tool such as the QR code scanner or the barcode lookup.