DEV
🔐 Encoding
Base64 Encoder / Decoder
Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It's commonly used for embedding images, encoding data in URLs, and safe transport of binary content.
How to Use
- Select Encode mode to convert text to Base64, or Decode mode to convert Base64 back to text.
- Enter your input text in the input panel.
- Click Transform to encode or decode.
- Click Copy to copy the result.
How It Works
Base64 divides input into 6-bit groups and maps each group to a character from the Base64 alphabet (A-Z, a-z, 0-9, +, /). Padding characters (=) are added if the input isn't evenly divisible by 3 bytes. This tool handles Unicode correctly by encoding to UTF-8 first.