Base64 Encoder/Decoder

Encode and decode Base64 strings instantly with support for UTF-8 text. All processing happens in your browser for maximum privacy.

Load Sample:
0 characters
0 characters

Enter plain text to encode to Base64, or load a sample.

How to Use

Encoding Text to Base64

  • Select "Encode" mode
  • Enter your plain text in the input field
  • The Base64-encoded result appears automatically
  • Click "Copy" to copy the result to clipboard

Decoding Base64 to Text

  • Select "Decode" mode
  • Enter your Base64 string in the input field
  • The decoded plain text appears automatically
  • Invalid Base64 strings will show an error message

Common Use Cases

API Authentication

Encode credentials for Basic Authentication headers in HTTP requests.

Data Transmission

Safely transmit binary data over text-based protocols like JSON or XML.

Email Attachments

Encode file attachments in email messages using MIME Base64 encoding.

Data URLs

Create data URLs for embedding images or other resources inline in HTML or CSS.

What is Base64?

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It's designed to carry data stored in binary formats across channels that only reliably support text content.

The encoding process converts groups of three bytes (24 bits) into four characters from a 64-character set: A-Z, a-z, 0-9, +, and /, with = used for padding.

This tool uses the native browser APIs (btoa and atob) with UTF-8 encoding support, ensuring proper handling of international characters and emojis.