Base64 Encoder/Decoder

Quickly encode and decode Base64 with UTF-8 text support

Input
Characters: 0
Bytes: 0
Output
Characters: 0
Bytes: 0

Select Conversion Method

What is Base64?

Base64 is an encoding method that uses 64 printable characters (A-Z, a-z, 0-9, +, /) to represent binary data. It is commonly used to transmit and store binary data in scenarios that require text data handling, such as in emails, JSON, XML, or URLs. Base64 encoding principle: Split every 3 bytes (24 bits) of data into 4 groups of 6 bits each, with each group mapped to a printable character. Encoded data is approximately 33% larger than the original data.

How to Use

Basic Operations

  1. Paste or enter text in the input box
  2. Click 'Base64 Encode' to convert text to Base64 format
  3. Click 'Base64 Decode' to restore Base64 string to text
  4. Results appear automatically in the output box, one-click copy available

Features

EncodeConvert plain text to Base64 encoded string
DecodeRestore Base64 encoded string to original text
UTF-8 SupportFull support for Chinese, Japanese and other multi-byte characters
Instant ConversionBrowser-side processing, no server upload required

Examples

Text Encoding

Hello World → SGVsbG8gV29ybGQ=

Chinese Encoding

你好世界 → 5L2g5aW95LiW55WM

URL Encoding

https://example.com → aHR0cHM6Ly9leGFtcGxlLmNvbQ==

FAQ

Q: Is Base64 encoding encryption?

A: No. Base64 is just an encoding method, not encryption. Anyone can easily decode a Base64 string, it provides no security. Do not use Base64 to protect sensitive information.

Q: Why are there = symbols after encoding?

A: Base64 encoding requires input data to be a multiple of 3 bytes. When the original data length is not a multiple of 3, = symbols are used for padding, with a maximum of 1 or 2 = signs.

Q: How are non-ASCII characters like Chinese handled?

A: This tool uses UTF-8 encoding to process text, first converting the text to a UTF-8 byte sequence, then performing Base64 encoding, fully supporting multi-byte characters like Chinese and Japanese.