Base64 Encode/Decode
Encode or decode Base64 strings.
About Base64 Encoder / Decoder
Base64 is a binary-to-text encoding scheme that represents binary data as an ASCII string. It is commonly used to embed images in HTML/CSS, transmit binary data over text-only protocols like email (MIME) and JSON APIs, and encode authentication credentials in HTTP headers. Every three bytes of input are mapped to four printable characters, making the data safe for text-based transport.
How to Use
Enter plain text and click "Encode" to convert it to a Base64 string, or paste a Base64-encoded string and click "Decode" to reveal the original content. The tool instantly validates the input and shows errors for malformed Base64. Copy the result with one click.
Common Use Cases
- Encoding images or files for inline embedding in HTML or CSS
- Decoding Base64-encoded API responses or JWT token parts
- Preparing binary data for transport in JSON payloads
- Encoding credentials for HTTP Basic Authentication headers
- Converting data URIs back to their original content