Base64 Encoder/Decoder

Encode and decode Base64 strings with instant results

Select Operation Mode

Input Text

0 characters

Output

0 characters

About Base64 Encoding

What is Base64?

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It's commonly used to encode data that needs to be stored or transferred as text, such as images in HTML or binary data in JSON.

Common Uses:

  • Embedding images in HTML/CSS
  • Encoding binary data in JSON
  • Email attachments
  • Basic authentication headers
  • Data URLs

Technical Details:

Alphabet: A-Z, a-z, 0-9, +, /, =
Padding: = characters for incomplete groups
Ratio: ~33% size increase
Groups: 3 bytes → 4 characters

URL-Safe Variant:

URL-safe Base64 replaces + with - and / with _ to make it safe for URLs and filenames.

Base64 Encoder/Decoder Features

Text Encoding

Encode/decode text strings

File Support

Encode/decode files

Image Encoding

Convert images to Base64

Instant Results

Real-time processing