Base64 Text Encoder/Decoder

Encode text to Base64 or decode Base64 back to text


1. 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 over media designed to deal with text.

2. How does it work?

Base64 converts binary data into text by dividing the input into 6-bit groups and mapping each to one of 64 ASCII characters (A-Z, a-z, 0-9, +, /). Every 3 bytes of input produces 4 characters of output. Padding with '=' characters is added when the input length isn't divisible by 3.

3. Examples

Encode simple text

Hello, World! → SGVsbG8sIFdvcmxkIQ==

Encode with special characters

Build Now → QnVpbGQgTm93

Longer text encoding

Base64 encoding → QmFzZTY0IGVuY29kaW5n

References