← Home 中文

Base64 Encode/Decode

Text Base64 Encode/Decode

Input

Size: 0

Output

Size: 0

Image to Base64 Converter

📁

Click or drag an image here

Supports PNG, JPG, GIF, SVG, WebP

Preview

What is Base64 Encode/Decode?

Free online Base64 encoder/decoder. Encode text to Base64, decode Base64 to text, convert images to Base64, and vice versa. Supports drag-and-drop file upload. Ideal for developers working on debugging, coding, and data processing. It is completely free, requires no registration, and all processing happens locally in your browser — your data never leaves your device.

How to use Base64 Encode/Decode

  1. Paste or type your content into the input box.
  2. Click the "Text → Base64" button.
  3. The result appears in the result area below — copy it with one click.

Frequently Asked Questions

Q:What is Base64 encoding?

Base64 is an encoding method that converts binary data into 64 printable ASCII characters. It is commonly used to transmit binary data over text-based protocols, such as email attachments and inline images in HTML/CSS.

Q:Does Base64 encoding increase data size?

Yes. Base64-encoded data is approximately 33% larger than the original. This is because every 3 bytes of input are encoded as 4 bytes of Base64 characters.

Q:Can Base64 encode Unicode text?

Yes. This tool first converts text to UTF-8 encoding using encodeURIComponent, then applies Base64 encoding. This ensures that all Unicode characters, including Chinese, are correctly handled.

浙ICP备2026073450号