ASCII QR Code 產生器:用文字表示的 QR Code

把連結或文字變成由字元組成的 QR Code,用於終端機、程式碼與聊天。Unicode 方塊或純 ASCII,附可直接複製的程式碼片段。

免費免註冊無浮水印在瀏覽器中執行

工具本身的按鈕與標籤目前仍為英文。

Characters

Two rows per line with █ ▀ ▄. The most compact, and square in a terminal.

Where it will be shown

Pick the background the characters will sit on. Most terminals are light text on a dark background, so choose dark: the output is inverted so the squares still come out dark and the margin light, which is what scanners look for. Choose light for documents, light-theme terminals and paper.

Lower error correction means fewer characters. Text on a screen does not get scratched, so L or M is usually right.

Preview · scan it from this screen

█████████████████████████████████
█████████████████████████████████
████ ▄▄▄▄▄ ████▄  ▀▀ █ ▄▄▄▄▄ ████
████ █   █ █ █▀█▄▀ ▀██ █   █ ████
████ █▄▄▄█ █  █▄▀▄▀▀▄█ █▄▄▄█ ████
████▄▄▄▄▄▄▄█ █ ▀▄█ █ █▄▄▄▄▄▄▄████
████ █▄▄  ▄█▀ ▀▄  ███▀▄ ▄▄▄▀█████
████▄▀▄███▄▀▀▀█ █▄   █▀ █▄█▄ ████
████▀▄█▀ ▄▄▀▄█▄▄▄ ▄▄▀▄▄▀▄▀▄ ▄████
████ █▄█▄▄▄ ▄██ ▄██ ▀▀   ▄█▄ ████
████▄█▄▄▄▄▄█▀██▄ ▄▄▀ ▄▄▄ ▀▄██████
████ ▄▄▄▄▄ █▀▄ ▀██ █ █▄█ ▀▄  ████
████ █   █ █ █  ▄ ▄ ▄  ▄ ▀ ▀▀████
████ █▄▄▄█ █▄  █▄█▄▄▀▀█▀▀ ▄█ ████
████▄▄▄▄▄▄▄█▄██▄▄▄▄██▄▄▄▄▄▄▄▄████
█████████████████████████████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

33 × 17 characters · 25 × 25 modules · version 2. Proportional fonts and extra line spacing break it: the rows must touch and every character must be the same width.

Copy it as

Paste into a terminal, a code comment or a chat code block. It needs a monospace font with no extra line spacing.

█████████████████████████████████
█████████████████████████████████
████ ▄▄▄▄▄ ████▄  ▀▀ █ ▄▄▄▄▄ ████
████ █   █ █ █▀█▄▀ ▀██ █   █ ████
████ █▄▄▄█ █  █▄▀▄▀▀▄█ █▄▄▄█ ████
████▄▄▄▄▄▄▄█ █ ▀▄█ █ █▄▄▄▄▄▄▄████
████ █▄▄  ▄█▀ ▀▄  ███▀▄ ▄▄▄▀█████
████▄▀▄███▄▀▀▀█ █▄   █▀ █▄█▄ ████
████▀▄█▀ ▄▄▀▄█▄▄▄ ▄▄▀▄▄▀▄▀▄ ▄████
████ █▄█▄▄▄ ▄██ ▄██ ▀▀   ▄█▄ ████
████▄█▄▄▄▄▄█▀██▄ ▄▄▀ ▄▄▄ ▀▄██████
████ ▄▄▄▄▄ █▀▄ ▀██ █ █▄█ ▀▄  ████
████ █   █ █ █  ▄ ▄ ▄  ▄ ▀ ▀▀████
████ █▄▄▄█ █▄  █▄█▄▄▀▀█▀▀ ▄█ ████
████▄▄▄▄▄▄▄█▄██▄▄▄▄██▄▄▄▄▄▄▄▄████
█████████████████████████████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

Want scan counts and an editable destination? Make it a free dynamic code. Want it in your own image? Make a picture code.

1

輸入文字或連結。QR Code 會隨著你的輸入用字元繪製出來。

2

選擇半塊、全塊或純 ASCII,以及它將顯示在什麼背景上:大多數終端機是深色。

3

複製成純文字、Markdown、shell 的 printf 指令列或 HTML 的 <pre>,並在它實際所在的位置掃描一次確認。

常見問題

為什麼我的文字 QR Code 掃不出來?+

各列必須緊挨著,每個字元的寬度也必須一致。比例字型、額外的行距或自動換行,都會把方塊拉開。缺少邊界,或者背景設定錯誤導致 QR Code 變成反色,也會失敗。由 # 組成的純 ASCII QR Code 幾乎掃不出來:能用方塊就用方塊。

應該選哪種背景?+

選字元將要顯示的那種背景。大多數終端機是深色背景配淺色文字,所以選「深色」:輸出會被反相,方塊仍是深色、邊界是淺色。文件、淺色主題終端機與紙張則選「淺色」。

什麼是半塊?+

填滿文字儲存格上半部、下半部或整個儲存格的字元(▀ ▄ █)。每個字元承載 QR Code 的兩列,所以行數減半;又因為終端機儲存格的高度約是寬度的兩倍,方塊正好是正方形。

在 GitHub 的 README 裡能掃描嗎?+

可以顯示,但 GitHub 與大多數 Markdown 算繪器會為程式碼區塊增加行距,列與列之間的空隙往往就足以讓手機讀不出來。README 裡請用 QR Code 的 SVG 圖片,文字版本留給終端機與純文字檔。

它有多大?會上傳什麼嗎?+

短連結用半塊大約需要 33 欄,完全放得進 80 欄的終端機;全塊與 ASCII 需要兩倍寬度。QR Code 在你的瀏覽器裡產生,不會向任何地方傳送內容。

更多免費工具

更多3D、AR 與藝術工具全部工具

下一步

讓 QR Code 本身就是作品。

這些工具用來製作與檢查一般的 QR Code。AriaQR 則能把你的照片、Logo 或插畫直接變成 QR Code 本身,下載前已在真實解碼器上驗證,還能修改連結並追蹤掃描次數。

《戴珍珠耳環的少女》被還原成可掃描的 QR Code,由 AriaQR 製作