DevToolBox免费
博客

Base64 编码 / 解码

将文本编码为 Base64 或将 Base64 字符串解码回纯文本。支持 UTF-8。

About Base64 Encoding

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It's commonly used for encoding data in URLs, emails, HTML, and APIs. This tool supports full UTF-8 encoding and decoding.

𝕏 Twitterin LinkedIn

评价此工具

3.7 / 5 · 174 人评价

保持更新

获取每周开发技巧和新工具通知。

无垃圾邮件,随时退订。

Enjoy these free tools?

Buy Me a Coffee

使用方法

  1. Enter your plain text in the top field to encode, or Base64 string in the bottom field to decode
  2. Click 'Encode' to convert text to Base64, or 'Decode' to convert Base64 back to text
  3. Copy the result with the copy button

常见用途

  • Encoding images for embedding in HTML/CSS
  • Encoding data for URL parameters
  • Transmitting binary data in JSON APIs
  • Email attachment encoding

常见问题

What is Base64 encoding?
Base64 is a binary-to-text encoding scheme that converts binary data into ASCII characters. It's commonly used to transmit data safely over text-based protocols like HTTP and email.
Is Base64 encoding the same as encryption?
No. Base64 is an encoding scheme, not encryption. Anyone can decode Base64 data. It's meant for data transport, not security.
Does this tool support UTF-8?
Yes. This tool fully supports UTF-8 encoding and decoding, allowing you to work with international characters and emojis.