二维码生成器

二维码在线生成器及 API 服务

如何使用

在左侧输入框中输入数据,右侧将会实时生成二维码,点击下载按钮可下载图片。

API

本站点对二维码提供对外 API 接口,可供调用:

# 生成二维码
$ curl -L devtool.tech/api/qrcode?data=https://www.baidu.com

Live Demo: https://devtool.tech/api/qrcode?data=https://shanyue.tech&width=200

NPM

$ npm i qrcode

在 JS 中使用它

const QRCode = require('qrcode')
const dataurl = await QRCode.toDataURL('https://shanyue.tech')