n8n Barcode Scanner Community Node

Decode 1D and 2D barcodes from binary workflow images directly on self-hosted n8n in a worker thread, keeping leading zeros intact with no API key (self-hosted only, not n8n Cloud).

Install from n8n Settings

Self-hosted n8n only (Node.js 22+). Hosted n8n Cloud cannot install unverified community nodes.

Open on npm
  1. 1

    Go to Settings → Community nodes → Install in your self-hosted n8n instance.

  2. 2

    Enter @qrcode-ai-com/n8n-nodes-qrcode-barcode-scanner, acknowledge the unverified-node notice and click Install.

  3. 3

    Place QR Code & Barcode Scanner right after Read/Write Files from Disk, HTTP Request, a form upload or an email attachment.

Runs WebAssembly in a local worker thread with no credentials, no native compiler and zero network calls.

Turn binary workflow images into structured barcode items

Decode label attachments locally on your n8n server while keeping the original binary payload intact for downstream nodes.

Binary passthrough & item modes

Accepts PNG, JPEG, WebP or GIF from Input Binary Field (data). Pick One Item per Image or One Item per Code without stripping the attached binary file.

texts, codes & optional report

Returns exact barcode strings (leading zeros kept intact) in texts, structured codes with base64 raw bytes and an optional full engine report.

On Error batch resilience

Images with no codes return count 0; files above 8 MiB / 4,096 px or corrupt inputs record [QRS-001] on that item when On Error is set to continue.

Test a barcode image in n8n

Create a known reference image, run the workflow scan and check the decoded value character by character.

barcode-reference.png

Create a Code 128 barcode holding STOCK-4827 and save it as barcode-reference.png.

Scan the image in n8n

Text
# Read/Write Files from Disk (barcode-reference.png) -> QR Code & Barcode Scanner
Input Binary Field: data
Profile:            Fast
Output:             One Item per Image
# Output -> texts: ["STOCK-4827"], count: 1
Expected result · Code 128
STOCK-4827

n8n decodes the binary image inside a local worker thread and outputs the exact Code 128 string under texts while keeping the binary attachment intact.

Sample output for barcode-reference.png.

n8n Barcode Scanner community node questions

Self-hosted vs n8n Cloud, installation steps, item modes, On Error behaviour, limits and licensing.

No. Hosted n8n Cloud allows verified community nodes only. Because this node loads an external WebAssembly scanner package and runs it in a worker thread, n8n's verification policy excludes it, so you need a self-hosted n8n instance.

Go to Settings → Community nodes → Install, enter @qrcode-ai-com/n8n-nodes-qrcode-barcode-scanner, accept the unverified-node prompt and install. For containerised or manual hosts, run npm install inside ~/.n8n/nodes and restart n8n. View the package on npm.

No. The scanner runs locally as WebAssembly inside a worker thread on Node.js 22 or newer, with no credentials, no native C++ build tools and zero outbound network calls.

One Item per Image (default) outputs one item per scanned binary image with texts, codes and count (returning count 0 if no code is detected). One Item per Code outputs one item per decoded code and emits nothing when an image has no code.

Files exceeding 8 MiB, 4,096 px per side or 16 million pixels, as well as corrupt images, fail the node with an engine code such as QRS-001. Set On Error to continue so the failed item records an error ending with [QRS-001] while remaining items still scan.

Yes. It reads 16 barcode symbologies (EAN, UPC, Code 128/39/93, ITF, Codabar, GS1 DataBar, Data Matrix, PDF417, Aztec, MaxiCode) plus QR codes, returning verbatim strings with leading zeros intact and making zero external product lookups.

Yes. Both the community node and its separate WebAssembly engine dependency carry the MIT licence (with retained Apache-2.0 notices for two reader modules), independent of QR Code AI generation credits or paid plans.

n8n setup and Barcode Scanner references

Check the official package page and README for setup notes, limits and supported formats.