Encode a String to Base64
Encode text for use in HTTP Basic Auth headers or data URIs.
Input
Hello, BuildUtilities!
Output
SGVsbG8sIEJ1aWxkVXRpbGl0aWVzIQ==
How it works
Base64 expands 3 bytes into 4 ASCII characters, useful for safely transmitting binary data through text-only channels.
Try it yourself
Open the full Base64 Encoder / Decoder to run this example on your own data.
Open Base64 Encoder / Decoder