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个字符),但它不区分大小写:对人来说更容易转录。

相关工具