Base64 编解码工具

在线 Base64 编码解码、图片转 Base64。支持文本和图片,全部在浏览器端处理。

广告位 — Google AdSense

Base64 Encoder/Decoder — Text and Image Base64 Online

工具介绍

A fast, free Base64 encoder/decoder that runs entirely in your browser. Base64 represents binary data using 64 printable characters, widely used for email attachments, URL parameters, inline images, API tokens, and JWT payloads. All processing happens in client-side JavaScript — your sensitive strings and files never leave your device.

怎么使用

  1. Choose mode: Text encode, Text decode, or Image → Base64
  2. Paste text (or drag a file) into the input area
  3. Output appears instantly on the right; click "Copy" to use

常见用例

常见问题

Q: Is Base64 encryption?
A: No — it is encoding only. Anyone with the Base64 string can decode it. Use real encryption for sensitive data.

Q: Will Chinese / emoji be handled correctly?
A: Yes. The tool uses UTF-8 by default and processes all Unicode.

Q: Can I paste the output straight into code?
A: Yes. Line breaks are auto-removed; copy and use.

小贴士

Base64 inflates data by ~33%. For small strings this is fine, but for large files use proper binary transfer.

Inline images via data: URLs are great for icons <10 KB; large images bloat HTML.

Need other encodings? Try "URL Encoder", "Hex ↔ Text", or "Binary ↔ Text".