📱 QR Code Generator

📐 工作原理與說明

QR 碼由定位與編碼兩類圖案組成:

  • 定點陣圖案:三個角上的 Finder(回字)、Alignment、Timing,用於掃碼定位與校正。
  • 編碼模式:純數字走數字模式、字母數字子集走字母數字模式,其餘按位元組(UTF-8)模式;本工具不支援漢字(Kanji)模式,也不做分段混合最佳化。
  • 糾錯等級 L / M / Q / H 可恢復約 7% / 15% / 25% / 30% 的損毀。
  • 版本 1–40 對應模組 21×21 → 177×177;含 Reed-Solomon 糾錯與掩碼最佳化。

純前端生成,掃碼即可讀取,無需聯網。

⚙️ 內容與樣式

QR text may contain Wi‑Fi passwords, contact details or private links. When enabled it is stored in this browser's localStorage; keep it off on shared devices and clear it when done.
Single mode encodes the whole text, including line breaks and leading/trailing spaces, as one QR code — ideal for vCards and Wi‑Fi. Batch mode splits by line into multiple codes and can trim each line.
Batch mode generates at most 20 QR codes per run; extra non-empty lines are reported here so you can generate them in batches.
256px

If the requested size cannot give every module at least one pixel, the output is raised to the minimum and reported after generation.

#000000
#ffffff

支援網址、文本、Wi‑Fi、名片和簡訊;二維碼內容始終留在瀏覽器本地。

🔍 預覽與下載

輸入內容後自動生成

📚 深度解析:二維碼生成器

💡 常見使用場景

  • 把文本/連結生成可掃二維碼。
  • 把 WiFi 密碼或活動連結做成二維碼貼在現場,使用者掃碼即可連線或開啟,省去手輸長串字元。
生成
輸入 `https://ex.com` → 生成 QR(版本隨內容長度自動選)。

❓ 常見問題(FAQ)

容量上限?
版本 40-L 的容量:數字模式 7,089 位、字母數字模式 4,296 字元、位元組模式 2,953 位元組。
為什麼內容越長碼越密?
二維碼容量按「版本」分級:內容越長需要的碼字越多,版本越高、模組數越多、單個模組就越小,因此同樣列印尺寸下長內容更難掃。實用建議是先縮短內容(用短鏈)、把糾錯等級從 H 降到 M,並保證列印尺寸隨版本增大。

Formula & Standard References

Item Formula / Note Source / Standard
Version capacity versions 1-40, from 21x21 modules, +4 per version ISO/IEC 18004
Error correction Reed-Solomon coding appends check codewords per block ISO/IEC 18004
Modes Numeric for digits, alphanumeric subset for its characters, otherwise byte (UTF-8); no Kanji mode or segmented mixed-mode optimization ISO/IEC 18004
⚠️ 使用說明與注意事項