inyourbrowser.com

QR code generator

QR code generator is a QR tool that encodes URLs, plain text, or Wi-Fi credentials into a scannable QR code. It supports adjustable size, error-correction levels, and custom foreground and background colors, and exports as PNG or SVG. The tool runs in your browser.

0 chars
#000000
#ffffff

QR code generated locally using qrcode. All processing runs in your browser.

How to generate a QR code

  1. Type or paste the URL or text you want to encode into the input field.
  2. A QR code is generated instantly in your browser. No button click needed.
  3. Customise the size, error correction level, and colours if needed.
  4. Click "Download PNG" or "Copy SVG" to save your QR code.

Common uses

  • Creating a QR code for a website URL to add to a poster, flyer, or business card, or use a barcode generator for product labels
  • Encoding Wi-Fi network credentials into a QR code for easy connection
  • Generating QR codes for contact information, event details, or payment links

Technical specification

  • Algorithm or formula: QR Code 2005 (ISO/IEC 18004) encoding with Reed-Solomon error correction. The qrcode library handles segmenting, masking selection, and module placement.
  • Browser API or library: qrcode (~12 KB) renders both Canvas bitmaps and SVG strings. Canvas API is used for PNG export, SVG string for clipboard copy.
  • Input limits: Up to ~3 KB of binary data depending on error correction level. Wi-Fi mode formats WIFI:T:...;S:...;P:...;;. Error correction levels L (7%), M (15%), Q (25%), H (30%).
  • Output: PNG file via canvas toBlob, or copyable SVG string. Both reflect the chosen size, foreground, and background colors.
  • Known limitations: Low-contrast color combinations may fail to scan. Logo overlay is not yet supported. Very long payloads require level L or fail.

Frequently asked questions

Is my data sent to a server?
No. QR codes are generated using the qrcode library running in your browser.
What data can I encode in a QR code?
Any text up to about 3 KB, typically URLs, contact info, Wi-Fi credentials, email addresses, or plain text. URLs are the most common use.
What is error correction level?
Error correction allows a QR code to be read even if part of it is damaged or obscured. Higher levels can recover more data loss but produce denser codes. Level L works for clean, undamaged prints.
Can I customise the colours?
Yes. The foreground and background colours can both be changed. Ensure sufficient contrast, low-contrast colour combinations are difficult for scanners to read.

Reviewed and tested May 26, 2026.