在线 Base64 解码编码 — 免费转换器
免费在线 Base64 编解码器。把文本或二进制编码为 Base64 或解码回原始内容 — 全部在浏览器中完成。
在下面粘贴 UTF-8 文本并切换"编码 / 解码"。常用于在 URL、JSON 或邮件头中嵌入令牌、图片和凭据。
常见用例
- 1Embed credentials, tokens or small images directly into URLs, JSON or email headers safely.
- 2Decode Authorization headers (Basic auth, JWTs) to inspect what your client is sending.
- 3Convert binary attachments to text for systems that only accept ASCII.
常见问题
Is my input sent to your server?+
No. Base64 encoding and decoding both run in your browser via the standard btoa/atob APIs. Nothing leaves the page.
Why is my decoded output garbled?+
Either the input is not valid Base64 (check for missing padding or stray characters), or the original data was binary, not text. A binary viewer is the right tool for non-text payloads.
Does it handle UTF-8 / emoji?+
Yes. We pipe the input through encodeURIComponent / unescape before btoa so emoji and non-ASCII characters round-trip correctly.