VS Code Barcode Scanner Extension

Read 1D and 2D barcode images in your VS Code workspace completely offline with a bundled WebAssembly engine. Extract exact SKU, EAN, UPC and Code 128 strings with leading zeros kept intact.

Install from Visual Studio Marketplace

Requires VS Code 1.74+. Works in local, remote and virtual workspaces (not vscode.dev).

  1. 1

    Run the 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 files in Explorer and choose Scan QR codes and barcodes.

  3. 3

    Inspect decoded text and JSON in the QR Code & Barcode Scanner output channel, or copy verbatim from Quick Pick.

Runs bundled @qrcode-ai-com/qrcode-barcode-scanner-wasm in a worker thread with no native binary and zero network calls.

VS Code Marketplace

Inspect workspace barcode assets inside your editor

Scan single or multi-selected files from Explorer, open image tabs or the Command Palette without leaving VS Code.

Explorer multi-file scans

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

Output channel & JSON report

Inspect each symbology, exact digits (with leading zeros intact) and JSON report whilst hidden control characters display as \u{...}.

Profile & budgetMs settings

Defaults to full (4000 ms budget); switch qrcodeBarcodeScanner.profile to fast (800 ms) or frame (80 ms), or set budgetMs to 0.

Try a barcode image in VS Code

Prepare a known test image, run the scan and verify the returned value character by character.

barcode-reference.png

Create a Code 128 barcode containing 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 prints the exact Code 128 identifier and full JSON report in the output channel and copies it verbatim via Quick Pick.

Example result for barcode-reference.png.

VS Code Barcode Scanner extension questions

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

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

Yes. The same extension identifier (qrcode-ai-com.qrcode-barcode-scanner) is published on the Open VSX Registry. 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 reads PNG, JPEG, WebP, GIF and uncompressed or bit-field BMP (1 to 32 bpp; RLE-compressed BMP is refused) up to 64 MiB, 10,000 px per side and 64 million pixels. It decodes 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 runs in the workspace host (local, remote SSH/WSL/container and virtual workspaces) using a worker thread and has no browser-only web build, so vscode.dev and github.dev cannot run it.

Yes. Because the extension makes zero network calls, it never queries external retail or ISBN databases. Quick Pick copies the exact decoded string verbatim, keeping leading zeros and punctuation intact.

full (the default, 4000 ms budget) runs every decode stage and full scoring. fast (800 ms) runs fewer stages with reduced scoring, and frame (80 ms) decodes camera-style inputs without scoring (score is null). Set budgetMs to 0 to disable the time limit.

Yes. Both the extension and its bundled WebAssembly engine are free and open source under the MIT licence (with retained Apache-2.0 notices for two reader parts). It makes zero network requests and is completely independent of QR Code AI accounts, generation credits or paid plans.

VS Code setup and Barcode Scanner references

Consult the official listing and README for installation details, limits and supported formats.