⚡Online Converter
Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 to text. Auto-detects input format for seamless conversion.
Input
0 chars•0 words•0 lines
Output
Encode text to Base64 or decode Base64 to text. Auto-detects input format for seamless conversion.
Base64 encoding works by dividing input data into 3-byte (24-bit) chunks and converting each chunk into four 6-bit Base64 characters.
The Base64 Alphabet:
Padding: If the input length is not divisible by 3, padding characters (=) are added at the end.
Example: "M" (77 in ASCII) = 01001101 in binary = TQ== in Base64
Here are some common Base64 encoding examples:
| Original Text | Base64 Encoded |
|---|---|
| Hello | SGVsbG8= |
| World | V29ybGQ= |
| Hello World! | SGVsbG8gV29ybGQh |
| Base64 | QmFzZTY0 |