QR Code Generator Online

Generate a QR code from text or a URL and download it as PNG or SVG, right in your browser. Your data stays local.

The QR code is generated locally in your browser, so the text or URL you encode is never uploaded to a server.

Built and maintained by Udit Agarwal

Need to encode binary data instead? Try the Base64 Encoder.

About QR Code Generator

This qr code generator turns any text or URL into a scannable QR code instantly, with a live preview that updates as you type. Paste a link, Wi-Fi string, contact detail, or plain text and download the result as a crisp 512px PNG for the web or a scalable SVG for print. You can choose from four error-correction levels (L, M, Q, H) to balance data capacity against resistance to damage, with M as a sensible default. It is handy for developers embedding links in docs, marketers building campaign codes, and anyone who needs a quick text to qr code or url to qr code conversion. Everything runs locally in your browser, so the content you encode never leaves your device.

Features

  • Encodes any text or URL into a scannable QR code
  • Live preview that regenerates instantly as you type
  • Four error-correction levels (L, M, Q, H) to balance capacity and damage resistance
  • Download as a 512px high-resolution PNG for web use
  • Download as a scalable SVG that stays sharp at any size for print
  • Clear inline error message when content exceeds QR capacity
  • Runs entirely in your browser with nothing uploaded

How to use the QR Code Generator

  1. Type or paste the text or URL you want to encode into the Content box.
  2. Pick an error-correction level (L, M, Q, or H) under Error correction, or keep the default M.
  3. Watch the QR code render live in the QR code preview panel.
  4. Click PNG or SVG to download the QR code to your device.

Example

Input

https://arraykit.com

Output

A scannable QR code image (512px PNG or SVG) that resolves to https://arraykit.com

Encoding a URL with the default M error-correction level.

Common errors & troubleshooting

  • The preview shows an error and no QR appears. — Your content likely exceeds the QR capacity for the chosen level. Shorten the text or pick a lower error-correction level such as L to fit more data.
  • Higher error-correction levels make the code too dense to scan reliably. — Levels Q and H survive more damage but hold less data and produce denser codes. Drop to M or L for long URLs and large blocks of text.
  • A scanned URL does not open the intended page. — Make sure you included the full scheme (https://). Encoding example.com without https may be treated as plain text by some scanners.
  • The downloaded PNG looks pixelated when enlarged for print. — Download the SVG instead. It is vector-based and stays sharp at any size, which is ideal for posters and packaging.

Frequently asked questions

What is the QR Code Generator and what can it encode?
It is a browser-based tool that turns any text or URL into a scannable QR code, including links, Wi-Fi strings, contact details, or plain notes, rendering live as you type.
How do I download my QR code as PNG or SVG?
Once the QR renders in the preview, click the PNG button for a 512px image or the SVG button for a vector file, and it saves straight to your device.
Which error-correction level should I choose in the QR Code Generator?
Higher levels (Q or H) survive scratches and damage but hold less data, while L holds the most. M is a good default for most links and text.
Is there a limit to how much text I can encode in a QR code?
Yes. QR codes have a fixed capacity that shrinks at higher error-correction levels. If your content is too long the preview shows an error, so shorten the text or lower the level.
Is the content I encode in the QR Code Generator kept private?
Yes. The QR code is generated locally in your browser and the text or URL you enter never leaves your device or gets uploaded to a server.

Related tools

Guides

More Encode / Decode tools

  • Mojibake / Encoding Fixer — Fix garbled "mojibake" text from an encoding mismatch — turn Café back into Café.
  • Protobuf Decoder — Decode a Protocol Buffers binary message (hex or base64) without a .proto schema.
  • Base32 Encoder / Decoder — Encode text to Base32 and decode Base32 back to text (RFC 4648), in your browser.
  • Morse Code Translator — Translate text to Morse code and Morse code back to text, with audio playback.
  • Text to Binary Converter — Convert text to binary, and binary, hex or decimal back to text, in your browser.
  • Base58 Encoder / Decoder — Encode and decode Base58 (Bitcoin / IPFS alphabet), with hex and text input.
  • ULID Generator — Generate sortable ULIDs and decode a ULID to its timestamp, in your browser.
  • Snowflake ID Generator — Generate and decode Twitter and Discord style Snowflake IDs, with timestamp extraction.
  • Caesar Cipher / ROT13 — Encode and decode Caesar, ROT13, ROT47 and Atbash ciphers, with a brute-force cracker.
  • Roman Numeral Converter — Convert numbers to Roman numerals and Roman numerals back to numbers, both ways.
  • Bitwise Calculator — Apply AND, OR, XOR, NOT and bit shifts to integers, with binary, hex and decimal views.
  • IEEE 754 Converter — Convert decimals to and from 32-bit and 64-bit IEEE 754 floating-point, with the bit fields.

See all Encode / Decode tools (31) · All tools