跳到主要内容
uencoder

Base64 解码器

将 Base64 数据解码为可读文本。免费、隐私优先、100% 纯客户端运行。支持 UTF-8、ASCII、Latin1、UTF-16LE 字符集,可处理 Data URI、JWT 载荷、邮件附件等场景,遇到非法输入会明确报错而非静默产生乱码。

尝试示例:
Local only

最近历史

暂无历史

使用方法

  1. 将 Base64 字符串粘贴到输入框中。
  2. 选择目标字符集。
  3. 在输出区域查看解码后的文本。

使用此工具的任务

修复常见 Base64 解码错误
为什么 Base64 字符串解码失败——缺失填充、URL 安全字母表、混入空白——以及每种情况的确切修复步骤。
任务
转换 hexadecimal string to Base64 and back
Translate 之间 hex dumps 和 Base64 representations 的相同二进制数据无 losing bytes 或 introducing padding 错误.
任务
解码 Base64 text and handle missing or corrupted padding
解码 Base64 payloads that arrive without trailing '=' padding or with URL-safe alphabet, and recover the original bytes safely.
任务
从 Basic Auth 头读取凭据
一次 Base64 解码、一次冒号分割,并清醒认识为什么 Basic Auth 凭据需要谨慎处理。
任务
解析 a multipart MIME message and extract each part
Break multipart/form-数据或 multipart/mixed MIME 消息为 其 constituent headers 和 bodies 为 inspection 或 reprocessing.
任务
检测 the encoding of unknown text and decode it correctly
Take 字符串的 mojibake 或 raw bytes, 识别是否它 是 UTF-8, Latin-1, Base64, 或 URL-encoded, 和解码它 到 readable 文本.
任务
编码 binary data into a JSON-safe string
转换 raw bytes (images, encrypted blobs, file contents) into a Base64 string that can be embedded inside a JSON field without breaking the structure.
任务
Inspect JWT 令牌: 解码头 和载荷无 verifying
Read 结构的 JSON Web Token 到 see 其 algorithm, claims, 和 expiry — purely 客户端-边, 否服务器 validation.
任务
解析 OAuth 2.0 token responses
OAuth 2.0 returns access_token, token_type, expires_in, 和 optionally refresh_token. Learn 到解析和 use 令牌响应正确.
任务
解码嵌套的 URL 编码参数(查询字符串中的 Base64 JSON)
拆解 URL 参数承载 URL 编码 Base64 JSON 这一常见 API 模式——一条链、三个工具、页面间零复制粘贴。
任务
Use HTTP 基础 Authentication
基础 Auth sends credentials as Base64-encoded username:password 在 Authorization 头. Learn 格式化, 安全 requirements, 和 alternatives.
任务
Use CBOR 编码为 compact 二进制 JSON
CBOR (Concise 二进制 Object Representation, RFC 8949) 是二进制 serialization 格式化为 JSON-like 数据, smaller 和 faster than JSON.
任务
Use MessagePack 为高效二进制 serialization
MessagePack packs JSON-like 数据为 compact 二进制格式化, reducing 大小和 parsing 时间. Popular 在高-性能 APIs 和 IoT.
任务
Verify 该编码-解码 round-trips losslessly
Confirm 该解码然后 re-编码 (或 vice versa) returns exact 原始输入, catching silent 数据 corruption 从错误 alphabets 或 padding.
任务

使用此工具的管道

常见问题

这个工具可以解码什么内容?
任何标准 Base64 字符串,包括电子邮件(MIME)、API、JWT 载荷、data URI 和 Basic 认证头中的数据。
遇到无效的 Base64 会怎样?
工具会明确报告“Invalid Base64 input”错误,而不是静默产生乱码。常见原因包括字符串截断、载荷内含空格或非 Base64 字符。
工具会去除空格和换行符吗?
会。空格和 CRLF 换行符在解码前会被移除,因此粘贴的 PEM 风格块或换行的 MIME 内容也能正确解码。
支持哪些字符集?
UTF-8(默认)、ASCII、Latin1 和 UTF-16LE。多语言文本选 UTF-8;西欧遗留数据选 Latin1;Windows 原生内容选 UTF-16LE。
可以解码 data URI 前缀吗?
可以,但需先去掉“data:...;base64,”前缀。解码器期望的是不带 MIME 类型头的纯 Base64 载荷。
为什么解码后的文本显示替换字符(�)?
通常是因为选错了字符集。若原文是 UTF-8 但以 Latin1 解码,多字节序列会变成单个 Latin1 字符。请将字符集切换为 UTF-8。

相关工具