Bidirectional Conversion
Seamlessly encode text to Base64 or decode Base64 strings. Switch modes instantly with one click.
Encode text to Base64 or decode Base64 strings instantly. Supports images, files, and UTF-8 encoding.
Encoded output will appear here
Seamlessly encode text to Base64 or decode Base64 strings. Switch modes instantly with one click.
All encoding and decoding happens in your browser. Your data never leaves your device.
Full Unicode support for international characters, emojis, and special symbols.
Base64 encoding is a fundamental technique in web development and data transmission that converts binary data into ASCII text format. This encoding scheme uses 64 different characters (A-Z, a-z, 0-9, +, /) to represent data in a text-safe manner.
Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It works by dividing input data into groups of 3 bytes (24 bits) and representing them as 4 Base64 characters (6 bits each). This ensures that binary data can be transmitted over text-based protocols without corruption.
To Encode:
To Decode:
Base64 uses 64 characters to represent data:
You can embed images in HTML using Base64 data URLs:
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUg..."
alt="Embedded Image" />| Encoding | Purpose | Size Increase |
|---|---|---|
| Base64 | Binary-to-text | ~33% |
| Hex | Binary representation | 100% |
| URL Encoding | URL-safe strings | Variable |