功能说明
Base 编码器把文本转换为四种常见的字节数组基编码 - Base32 (RFC 4648)、Base58 (Bitcoin)、Base62 和 Base85 (Ascii85) - 也能把它们解码回文本。每种编码都作用于你输入的 UTF-8 字节,因此多字节字符和 emoji 都能完美往返。这些编码无处不在:Base32 出现在 TOTP 认证器密钥和
DNSSECDNSSECA DNS extension that cryptographically signs zone records, letting resolvers verify answers were not forged or altered in transit.Learn more
中,Base58 出现在比特币地址和短分享链接中,Base62 出现在 URL 短链服务中,Ascii85(btoa)出现在 PDF 和 PostScript 流中。一切 100% 客户端运行:你输入的任何内容都不会发往服务器,可以放心用于密钥和凭据。使用方法
- 从分段切换器中选择方案 - Base32、Base58、Base62 或 Base85。
- 选择编码(文本 → 编码结果)或解码(编码结果 → 文本)。
- 在输入框中输入或粘贴(或按 Sample 载入一个多字节演示字符串)。
- 在输出中读取结果;如果输入对所选方案无效,则读取错误信息。
- 复制结果,或复制分享链接,把精确的输入、模式和方案发给队友。
示例
Base32(RFC 4648,带填充)
输入:hello → 输出:
NBSWY3DP
输入:foo(3 字节)→ 输出(用 = 填充到 8 字符的倍数):
MZXW6===
Base58(Bitcoin 字母表 - 前导零字节变为前导 1)
输入:A → 输出:
28
Base62(BigInt 基转换)
输入:A → 输出:
13
Base85 / Ascii85(4 字节 → 5 字符;全零组缩写为 z)
输入:hi → 输出:
BP@
补充说明
- 多字节安全: 四种方案都编码你文本的 UTF-8 字节,因此 emoji 和非 ASCII 字符都能干净往返。
- Base32 使用 RFC 4648 字母表(
A-Z2-7)并用=填充到 8 字符的倍数。Base58 使用 Bitcoin 字母表(没有0、O、I、l),并把前导零字节保留为前导1。Base62 是0-9A-Za-z,没有前导零的特殊处理。Base85 是 Ascii85(!-u),带z零组缩写,没有<~~>定界符。 - 无效输入 → 报错: 选定字母表之外的字符(或畸形的尾部分组)会显示错误而不是乱码 - 解码拒绝它,绝不猜测。
- 可分享: 你的输入、模式和方案都编码在 URL 中,一个链接即可复现精确视图。
- 私密: 所有计算 100% 客户端完成 - 可以放心用于密钥和凭据。
- 相关工具:
Base64Base64An encoding representing binary data as 64 safe ASCII characters, so it survives transport through text-only channels. It encodes — it does not encrypt.
、Hex Converter、HashHashA one-way function that maps data of any size to a fixed-length digest. Same input, same digest; any change, different digest; not reversible.
(SHA)、HMACHMACA construction that combines a hash function with a secret key to prove a message is intact and came from someone holding the key.
Generator。