🔐 Base64 Encoder / Decoder
Encode plain text to Base64 or decode Base64 back to plain text.
What is Base64 Encode / Decode?
Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It converts arbitrary bytes into a set of 64 printable characters (A–Z, a–z, 0–9, +, /). This makes it possible to safely transmit data over text-only channels such as email (MIME), JSON APIs, and HTML attributes without corruption from control characters.
Common real-world uses include embedding images directly in HTML or CSS as data URLs, storing binary data in JSON payloads, encoding credentials in HTTP Basic Authentication headers, and transmitting email attachments. Developers also use Base64 when they need to store binary blobs in databases that only accept text. Decoding reverses the process — useful when you receive a Base64 string and need the original content.
How to Use the Base64 Encoder / Decoder
- Paste your plain text (or Base64 string) into the input box.
- 点击 Encode to Base64 to convert plain text → Base64.
- 点击 Decode from Base64 to convert Base64 → plain text.
- 使用 Swap to move the output back to the input for chaining operations, then click Copy to copy the result.
Why Use Our Base64 Tool?
- 100% 免费 — No fees, no limits on input size.
- 无需注册 — 无需注册。
- 基于浏览器 — Your text is processed locally using the native
btoa()/atob()API — nothing is sent to a server. - Unicode Support — Correctly handles multi-byte UTF-8 characters including emoji and non-Latin scripts.
- Instant Swap — Quickly flip output back to input for decode-after-encode workflows.
常见问题解答
<img src="data:image/png;base64,iVBOR...">. This eliminates an HTTP request for the image but increases HTML file size.要闻速览
- ✓ 100% 免费,无隐藏费用
- ✓ 无需帐户或登录
- ✓ 适用于任何浏览器
- ✓ 您的数据永远不会离开您的设备
- ✓ Full Unicode / UTF-8 support