Base32编码与解码工具
编码和解码Base32字符串:常用于TOTP密钥、DNS记录以及不区分大小写的标识符。
如何使用本工具
- 1
Choose 'Encode' to turn text into Base32, or 'Decode' to turn Base32 back into text, using the mode dropdown.
- 2
Type or paste your input into the text box — UTF-8 text when encoding, or a Base32 string when decoding.
- 3
Read the result in the gray output panel below; it updates instantly as you type, with no button to press.
- 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?▼
相关工具
JWT解码器
即时解码JSON Web Token(JWT)。完全在你的浏览器中运行:令牌绝不会离开你的设备,可安全用于生产环境的密钥。
JSON格式化与校验工具
在线格式化、校验和压缩JSON。完全在你的浏览器中运行:你的数据永远不会离开你的设备。
XML格式化工具
格式化并美化XML文档。适用于SOAP、站点地图、RSS订阅源和配置文件。
Base64编码与解码工具
将字符串编码为Base64,或将Base64解码为文本。尊重你的隐私:全部在你的浏览器中运行。
URL编码与解码工具
将文本转换为URL安全的编码(百分号编码),或进行反向转换。适用于查询字符串、重定向和OAuth流程。
HTML实体编码与解码工具
将特殊字符转换为HTML实体(&、<等),或进行反向转换。适用于将文本安全地嵌入HTML。