Base64 Decode Online

粘贴任意 Base64 值,这款 Base64 解码器会自动搞定其余工作:识别 Base64 变体(标准、URL 安全、MIME 等)、文本的字符集以及二进制数据的文件类型。文本直接显示;文件则提供预览和下载按钮。

如何使用 Base64 Decode Online 工具

  1. 粘贴 Base64 字符串(可包含 Data URI、换行和空格)。
  2. 将标准和字符集保持为自动检测,或手动选择。
  3. 如果希望无效字符直接报错而不是被跳过,请启用严格模式。
  4. 点击Base64 解码。

为什么解码器会接受无效字符?

从电子邮件、日志或 PDF 中复制的 Base64 常常夹杂多余的空格、引号或行号。在默认(宽松)模式下,解码器会忽略 Base64 字母表以外的所有字符并补全缺失的填充,大多数实际使用的解码器也是这样做的。开启严格模式可按所选标准精确校验输入。

字符编码

当解码后的字节是文本时,解码器会先尝试 UTF-8,再尝试常见的旧编码(Windows-1252、ISO-8859-x、Shift_JIS、GBK、EUC-KR、Big5、KOI8-R 等),并选择能生成可读文本的那一种。您也可以从列表中强制指定字符集。

When developers decode Base64

Use this free Base64 decoder to inspect API payloads, open data URIs, read JWT segments (with the JWT tool for full tokens), recover files from logs, and verify MIME or PEM bodies. Auto-detect handles standard and URL-safe alphabets so you spend less time guessing which variant produced the string.

所有 Base64 编码器

所有 Base64 解码器

常见问题

如何进行 Base64 解码?

将 Base64 字符串粘贴到输入框中,点击“Base64 解码”。文本会立即显示;二进制文件可预览和下载。

为什么会出现“无效字符”错误?

您的字符串包含所选字母表以外的字符,例如 Base64URL 中的“-”或“_”。请使用自动检测、关闭严格模式,或用 Base64 修复工具处理。

可以将 Base64 解码为图片或 PDF 吗?

可以。如果解码后的数据是文件,解码器会识别其类型,并显示预览和下载按钮。

Is this Base64 decoder free and private?

Yes. Decoding runs in your browser. Your string is not uploaded or stored. There is no account and no fee.

How do I decode Base64URL or JWT-style strings?

Leave Auto-detect on, or choose Base64URL. For full JWTs (three dot-separated segments), use the JWT Decoder tool which Base64URL-decodes the header and payload.

相关工具和指南

评论 (0)

对“Base64 Decode Online”有疑问、想法或发现了 bug?欢迎留言评论、为工具评分或回复他人。

暂无评论,快来分享您的反馈吧!

发表评论

为此工具评分:
Esc
↑ ↓ 移动↵ 打开Esc 关闭