Base32 编码/解码 — Uttir
Skip to main content

Base32 编码/解码

将文本编码为 Base32,或将 Base32 字符串解码还原。采用 RFC 4648 字母表,UTF-8 安全。

Base32 编码/解码 — Base32 represents binary data using a 32-character alphabet (A–Z and 2–7) defined in RFC 4648. It is common for TOTP secrets, case-insensitive identifiers, and short tokens where Base64 is too dense to be human-readable.

Encoding and decoding happen entirely in your browser.

Was Base32 编码/解码 useful?

Base32 编码/解码是什么?

Base32 represents binary data using a 32-character alphabet (A–Z and 2–7) defined in RFC 4648. It is common for TOTP secrets, case-insensitive identifiers, and short tokens where Base64 is too dense to be human-readable.

This tool encodes UTF-8 text to a Base32 string with = padding, and decodes Base32 back to text. It rejects any input that contains characters outside the standard alphabet.

使用方法

  1. Choose direction

    Switch between Encode and Decode with the toggle.

  2. Paste input

    The output updates as you type.

  3. Copy the result

    One click to copy the encoded or decoded value.

示例

Encode "foobar"

A canonical RFC 4648 test vector.

结果: MZXW6YTBOI======

Decode a TOTP secret

Most TOTP secrets are stored as Base32.

结果: JBSWY3DPEHPK3PXP

常见问题

相关指南

相关工具

Last reviewed: 2026-11-21