Skip to main content
Framework integrations provide a QrCode component, and every integration can generate QR code URLs or SVG markup through its qrCode() helper.

Render a QR code

Pass the text or URL to encode through value. Integrations handle the API’s Base64 encoding automatically.

Use a helper

Use qrCode() when you need the selected image URL or canonical SVG markup outside a component.

Preview

With quiet zone

QR code with a quiet zone that opens pictum.dev

Without quiet zone

Edge-to-edge QR code that opens pictum.dev

Control the quiet zone

Pictum includes clear space around QR modules by default. Set quiet_zone=false when the surrounding layout already provides enough empty space and you need edge-to-edge image output.
Removing the quiet zone can make a QR code harder to scan when other content is close to its edges. Keep equivalent clear space in your layout.

Choose a format

JPEG is not available because lossy compression can reduce QR code readability.

Set the display size

QR code components forward native attributes. Set display dimensions with width and height attributes or your application’s CSS. Raster images use a 256×256 source by default. The OpenAPI endpoint accepts raster source sizes from 64 through 2048 pixels.

Handle data safely

Base64 is not encryption. Never encode passwords, access tokens, personal data, Wi-Fi credentials, or other secrets. QR code URLs may appear in browser history, application logs, analytics, and shared caches.
The decoded value must be non-empty UTF-8 text no larger than 512 bytes. Integrations encode values before building the image URL.

Direct HTTP access

The OpenAPI reference documents Base64 input, raster source sizing, response caching, and validation errors.