# QR code generator

Styled QR codes with a logo: dot and corner shapes, colors and gradients, background, frame; download PNG, JPEG, WebP or SVG.

- Open the app: https://openlibs.dev/en/app/qr-code-generator/
- library for developers: https://openlibs.dev/en/lib/qr-code-generator/

## QR code generator: instructions

### Getting started

The preview is on the right (on top on a phone) and changes with every setting; the settings cards are on the left (below on a phone). Type your text or link in “QR data”, style the code in the cards below, then open “Export” in the toolbar to download the image.

### QR data

The text field takes plain text, a link, or ready Wi‑Fi or vCard text. Width and height set the image size in pixels, margin the empty border around the code that cameras need. Render: SVG (vector, sharp at any size) or Canvas (raster). QR shape: square or circle.

### QR options

Type number is the QR version (1–40); 0 picks it automatically for the length of your text. Mode is the encoding; Byte works for any text. Error correction (L, M, Q, H) is how much of the code may be covered and still read; with a logo use Q or H.

### Dots and corners

Choose the shape of the dots, of the three outer corner squares and of the dots inside them. Each has its own fill: one color, or a linear or radial gradient between two colors with a rotation angle. Every color field has a color button and a field for an ImageMagick color name.

### Background

The background is one color, a gradient, or transparent (for placing the code on any design; save it as PNG, WebP or SVG). Keep a strong contrast: dark dots on a light background read best.

### Logo in the centre

Paste an image link or upload a file (an uploaded file is kept inside the project). Image size is the share of the code the logo takes (0.3–0.35 is a good value), image margin the gap around it. “Hide dots under the image” clears the dots behind the logo. “Remove logo” takes it away.

### Presets and frame

A preset replaces the colors and shapes with a ready style; “Reset all” returns every setting to the start. The frame draws a rounded border around the code with its own color, width and rounding; it works only with the SVG render.

### JSON options

The text box shows the options object passed to new QRCodeStyling(options). Copy it for your own code, or edit it and press “Apply JSON”.

### Export, import, undo and journal

In “Export” enter a file name, choose PNG, JPEG, WebP or SVG and press “Download image”, or save all settings with the logo as a project. “Import” loads such a project or a JSON options file; unsaved work is restored from there too. Ctrl+Z / Ctrl+Y undo and redo, Ctrl+S opens Export; the Journal lists actions and errors.

