Back to All Tools

Base64 Encoder/Decoder

Encode and decode Base64 strings with JSON formatting support

0 characters
0 characters

About Base64 Encoding

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format by translating it into a radix-64 representation.

Common Uses:

  • Email attachments (MIME)
  • Embedding images in HTML/CSS (data URLs)
  • Storing complex data in JSON or XML
  • Basic obfuscation of data

How It Works

Encoding Process:

  1. Input text is converted to binary data
  2. Binary data is split into 6-bit chunks
  3. Each 6-bit chunk is mapped to a Base64 character
  4. Padding characters (=) are added if needed

Decoding Process:

  1. Base64 characters are mapped to 6-bit values
  2. 6-bit values are combined into 8-bit bytes
  3. Bytes are converted back to the original text
  4. Padding characters are removed