Starting points for your own code. Run them in the environment shown below.
Node.js 22+ · ES module (.mjs)
Current inputs apply only to fields used by the example. Selected files are not embedded.
Install dependencies
npm install qrcode
import QRCode from "qrcode";
const svg = await QRCode.toString("https://tools.shnea.kr/", { type: "svg", errorCorrectionLevel: "M" });
console.log(svg);
// Save the SVG string as qr.svg.
Put it to work
Create QR images from text, URLs, or Wi-Fi details.
Details that matter
Format and meaning
QR codes contain your input. A Wi-Fi QR shares connection credentials.
Supported scope and limits
Up to 2,000 UTF-8 bytes
Split inputs that exceed the limit. If a format or algorithm is unsupported, choose a tool that matches your requirements instead of silently changing the format.