Base64 Encoder/Decoder
Quickly encode and decode Base64 with UTF-8 text support
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
- Paste or enter text in the input box
- Click 'Base64 Encode' to convert text to Base64 format
- Click 'Base64 Decode' to restore Base64 string to text
- Results appear automatically in the output box, one-click copy available
Features
Examples
Text Encoding
Hello World → SGVsbG8gV29ybGQ=Chinese Encoding
你好世界 → 5L2g5aW95LiW55WMURL 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.