RevealTheme logo

Base32 編碼與解碼工具

編碼和解碼 Base32 字串:常用於 TOTP 金鑰、DNS 記錄以及不區分大小寫的識別碼。

如何使用本工具

  1. 1

    Choose 'Encode' to turn text into Base32, or 'Decode' to turn Base32 back into text, using the mode dropdown.

  2. 2

    Type or paste your input into the text box — UTF-8 text when encoding, or a Base32 string when decoding.

  3. 3

    Read the result in the gray output panel below; it updates instantly as you type, with no button to press.

  4. 4

    Select and copy the output text to use it elsewhere.

什麼是 Base32 編碼與解碼工具?

Base32 使用 32 個英數字元(A-Z、2-7)對二進位資料進行編碼。與 Base64 不同,它不區分大小寫,並避免使用視覺上易混淆的字元(0/O、1/I/l),因此適合手寫或口頭傳輸。它主要用於 2FA 金鑰和 DNS 記錄。

常見使用場景

  • Inspecting a TOTP/2FA setup string by decoding the Base32 secret an authenticator app expects.

  • Encoding a short identifier into a case-insensitive form safe to drop into a DNS label or subdomain.

  • Hand-checking the output of a server library against a known-good Base32 implementation while debugging.

  • Producing tokens or codes meant to be read aloud or typed without confusing 0/O or 1/I/l.

  • Decoding a Base32 string copied from a config file or QR-code payload to see the underlying text.

  • Teaching or learning how bit-level encodings group data, by watching how input maps to 5-bit chunks.

常見問題

為什麼用 Base32 而不用 Base64?
Base32 不那麼精簡(每 5 個位元組用 8 個字元,而 Base64 每 3 個位元組用 4 個字元),但它不區分大小寫:對人來說更容易轉錄。

相關工具