The Base64 Encoder & Decoder is a versatile online tool designed to convert text or files into Base64 format and decode Base64 back to readable text or original files. Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. This tool ensures seamless encoding for web, email, and data transfer purposes.
Base64 Encoding converts binary data into text using 64 ASCII characters (A–Z, a–z, 0–9, +, /). It’s commonly used in:
Embedding images in HTML or CSS
Sending binary files over email (MIME)
Storing complex data in databases safely
Secure data transfer and APIs
Decoding reverses this process, restoring the original data.
Formula & Equations Used (Highlighted)
─────────────────────────────
Base64 encoding divides input into 24-bit blocks, splits each into 6-bit chunks, and maps to the Base64 alphabet:
Base64 Output = Map(Input Bits ÷ 6)
─────────────────────────────
Input Bits: Original binary data
Map: Base64 character table (A–Z, a–z, 0–9, +, /)
Padding: = used when input isn’t divisible by 3 bytes
Encoding Example:
Original text: "Hello World"
Step 1:
Convert to binary: 01001000 01100101 01101100 01101100 01101111 ...
Step 2:
Split into 6-bit chunks: 010010 000110 010101 101100 ...
Step 3:
Map to Base64 characters: "SGVsbG8gV29ybGQ="
Decoding Example:
Base64 input: "SGVsbG8gV29ybGQ="
Step 1:
Convert Base64 characters to 6-bit binary
Step 2:
Recombine into 8-bit bytes
Step 3:
Original text output: "Hello World"