实时预览

请输入内容生成二维码

功能选项

批量生成
API接口

📁 拖拽文本文件到此处

支持 .txt 文件,每行一个内容

GET /api/qrcode/show

直接返回二维码图片(最简单)

<img src="/api/qrcode/show?text=https://example.com">

参数:text(必填)、size(尺寸)、color(前景色)、bgcolor(背景色)、level(容错L/M/Q/H)、margin(边距)、download(下载)

GET /api/qrcode/generate?format=image

GET方式直接返回图片

POST /api/qrcode/generate

生成二维码并返回URL

{ "content": "https://example.com", "size": 300, "fg_color": "#000000", "bg_color": "#FFFFFF", "error_level": "M" }
GET /api/qrcode/svg?content=xxx

返回SVG格式二维码

POST /api/qrcode/batch

批量生成二维码