🔐

Base64 Encoder/Decoder

Encode and decode text using Base64 encoding standard

Text Input

Enter plain text to encode or Base64 string to decode

Processed Result

Input Length: 0
Output Length: 0
Size Change: 0
Encoding: None
ℹ️ Ready to process text

Quick Examples

Simple Text Hello World!
JSON Data {"name":"John"}
Email Content [email protected]
Base64 String SGVsbG8gV29ybGQh
Unicode Text café résumé naïve
Special Characters !@#$%^&*()_+

About Base64 Encoding

What is Base64?

Base64 is an encoding scheme that converts binary data into ASCII text using a radix-64 representation. It uses 64 printable ASCII characters (A-Z, a-z, 0-9, +, /) to represent data.

How it Works

  • Input: Takes groups of 3 bytes (24 bits)
  • Output: Creates 4 Base64 characters (6 bits each)
  • Padding: Uses = characters for incomplete groups
  • Alphabet: 64 characters plus padding
  • Size: Output is ~33% larger than input

Common Uses

  • Email: Encoding attachments in MIME
  • Web: Data URLs and embedded content
  • APIs: Transmitting binary data over text protocols
  • Storage: Storing binary data in text fields
  • Authentication: Basic HTTP authentication

Character Set

Standard:
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789+/
Padding: =

URL-Safe Variant

Replaces + and / with - and _ respectively for safe use in URLs and filenames.

Options Explained

  • URL-Safe: Uses -_ instead of +/ for web compatibility
  • Remove Padding: Omits = characters (some systems don't require them)
  • Line Breaks: Adds newlines every 76 characters (MIME standard)

Important Notes

  • Not encryption: Base64 is encoding, not encryption
  • Reversible: Anyone can decode Base64
  • Text safe: Output contains only printable characters
  • Case sensitive: Upper and lower case letters matter