VS Code Barcode Scanner Extension

Decode 1D and 2D barcode images across your VS Code workspace completely offline using a bundled WebAssembly engine. Capture exact SKU, EAN, UPC and Code 128 values with leading zeros intact.

Install from Visual Studio Marketplace

Needs VS Code 1.74+. Supports local, remote and virtual workspaces (not vscode.dev).

  1. 1

    Run the CLI command below, or search for QR Code & Barcode Scanner in the VS Code Extensions view.

    Shell
    code --install-extension qrcode-ai-com.qrcode-barcode-scanner
  2. 2

    Right-click one or more PNG, JPEG, WebP, GIF or BMP images in Explorer and choose Scan QR codes and barcodes.

  3. 3

    Review decoded strings and JSON in the QR Code & Barcode Scanner output channel, or copy verbatim via Quick Pick.

Executes bundled @qrcode-ai-com/qrcode-barcode-scanner-wasm inside a worker thread with no native binary and zero network requests.

VS Code Marketplace

Check workspace barcode assets directly in your editor

Decode single or multi-selected images from Explorer, active tabs or the Command Palette without switching out of VS Code.

Explorer multi-file scans

Right-click one or several PNG, JPEG, WebP, GIF or uncompressed BMP images in Explorer to process them sequentially in a worker thread.

Output channel & JSON report

Review each symbology, exact digits (with leading zeros preserved) and JSON report while hidden control characters render as \u{...}.

Profile & budgetMs settings

Uses full (4000 ms budget) by default; change qrcodeBarcodeScanner.profile to fast (800 ms) or frame (80 ms), or set budgetMs to 0.

Test a barcode image in VS Code

Save a known reference image, trigger the scan and confirm the decoded string character for character.

barcode-reference.png

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

Scan the image in VS Code

Text
# Right-click barcode-reference.png -> Scan QR codes and barcodes
# Output channel (QR Code & Barcode Scanner):
barcode-reference.png
  Profile full · budget profile default
  1 code found:
  1. Code 128: STOCK-4827
Expected result · Code 128
STOCK-4827

VS Code writes the exact Code 128 identifier and complete JSON report to the output channel and copies it verbatim via Quick Pick.

Sample output for barcode-reference.png.

VS Code Barcode Scanner extension questions

Marketplace & Open VSX setup, BMP & size caps, vscode.dev scope, settings and licensing.

Open the Extensions view in VS Code 1.74 or newer, search for QR Code & Barcode Scanner and select Install, or run code --install-extension qrcode-ai-com.qrcode-barcode-scanner. You can also get it from the Visual Studio Marketplace.

Yes. The same extension ID (qrcode-ai-com.qrcode-barcode-scanner) is available on Open VSX. Search for it in your editor's Extensions view or run codium --install-extension qrcode-ai-com.qrcode-barcode-scanner (or your editor's CLI command).

It accepts PNG, JPEG, WebP, GIF and uncompressed or bit-field BMP (1 to 32 bpp; RLE-compressed BMP is rejected) up to 64 MiB, 10,000 px per side and 64 million total pixels. It supports 16 barcode formats (EAN-13/8, UPC-A/E, Code 128/39/93, Codabar, ITF, Telepen, GS1 DataBar, Data Matrix, PDF417, Aztec, MaxiCode) plus QR codes.

No. The extension executes inside the workspace host (local, remote SSH/WSL/container and virtual workspaces) via a worker thread and does not ship a browser-only web build, so vscode.dev and github.dev are unsupported.

Yes. Because it makes zero network requests, it never queries external retail or ISBN catalogues. Quick Pick copies the exact decoded string verbatim, keeping leading zeros and punctuation preserved.

full (the default, 4000 ms budget) runs every decoding stage with complete scoring. fast (800 ms) runs fewer stages with lighter scoring, and frame (80 ms) targets camera-style frames without scoring (score is null). Set budgetMs to 0 to remove the time cap.

Yes. Both the extension and its bundled WebAssembly engine are free and MIT-licensed (with retained Apache-2.0 notices for two reader components). It makes zero network calls and stays separate from QR Code AI accounts, generation credits or paid plans.

VS Code setup and Barcode Scanner references

Check the official listings and README for setup commands, image limits and supported formats.