输入
输出

About Base64 Encoder/Decoder

A practical online Base64 encoder/decoder supporting string and file Base64 encoding/decoding. Supports UTF-8, ASCII, GBK and more character encodings for multi-language scenarios. All processing runs locally in your browser.

Encode
Convert text to Base64
Decode
Convert Base64 back to text
Multi-Charset
UTF-8, ASCII, GBK support
File Mode
Encode/decode files directly
Supports string and file Base64 conversion
Multiple character encodings: UTF-8, ASCII, GBK
Auto-conversion and one-click swap
All processing runs locally in your browser

How to Use

1
Select Mode
Choose Encode or Decode mode.
2
Input Content
Type text or upload a file to convert.
3
Set Charset
Select the appropriate character encoding.
4
Get Result
Copy or download the converted output.

Use Cases

API Data Transfer
Encode binary data for API requests.
Email Attachments
Encode attachments for MIME emails.
Data URIs
Embed images as Base64 in HTML/CSS.
Web Development
Handle auth tokens and encoded payloads.

Encoding Tips

What is Base64

Base64 is an encoding scheme that represents binary data in an ASCII string format for safe transmission.

Charset Selection

Use UTF-8 for multilingual text, ASCII for English-only, and GBK for Chinese characters.

File vs Text Mode

Text mode handles typed strings; file mode encodes/decodes entire files like images or documents.

Encode and Decode Base64 Easily
From API data transfer to email attachments, one-stop solution for all your Base64 encoding needs.
正在加载...