n8n Barcode Scanner Community Node

Extract 1D and 2D barcodes from binary workflow images on self-hosted n8n inside a worker thread, preserving leading zeros with no API key (not supported on n8n Cloud).

Install from n8n Settings

Works on self-hosted n8n only (Node.js 22+). n8n Cloud does not allow installing unverified community nodes.

Open on npm
  1. 1

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

  2. 2

    Type @qrcode-ai-com/n8n-nodes-qrcode-barcode-scanner, acknowledge the unverified-node prompt and proceed with the install.

  3. 3

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

Executes WebAssembly inside a worker thread with no credentials, no native build toolchain and zero network calls.

Convert binary workflow images into structured barcode items

Decode image attachments locally on your n8n server while passing the original binary file along to downstream steps.

Binary passthrough & item modes

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

texts, codes & optional report

Returns exact barcode strings (leading zeros preserved) under texts, structured codes with base64 raw bytes and an optional complete engine report.

On Error batch resilience

Images without codes output count 0; files exceeding 8 MiB / 4,096 px or corrupted inputs attach [QRS-001] on the item when On Error is set to continue.

Test a barcode image in n8n

Generate a known reference image, execute the workflow scan and check the decoded output character by character.

barcode-reference.png

Create a Code 128 barcode encoding 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 reads the binary image locally inside a worker thread and outputs the exact Code 128 value under texts while keeping the source binary attached.

Sample result 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. n8n Cloud allows verified community nodes only. Since this node relies on the external WebAssembly scanner engine and executes it inside a worker thread, n8n's verification criteria exclude it, meaning you need a self-hosted n8n setup.

Go to Settings → Community nodes → Install, type @qrcode-ai-com/n8n-nodes-qrcode-barcode-scanner, confirm the unverified-node prompt and install. On containerised or manual servers, run npm install inside ~/.n8n/nodes and restart n8n. View the listing on npm.

No. The scanner runs offline as WebAssembly in a worker thread on Node.js 22 or newer, needing no credentials, no native compilation and zero outbound network calls.

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

Files exceeding 8 MiB, 4,096 px on a side or 16 million pixels, as well as corrupted images, fail the node with an engine error code like QRS-001. Switch On Error to continue so the failed item records an error ending in [QRS-001] while the rest of the batch completes normally.

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

Yes. Both the community node and its separate WebAssembly engine dependency are open-source under 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

Refer to the official package page and README for installation notes, limits and supported symbologies.