"foobar" in Base64
Base64 Encoded
Zm9vYmFy
"foobar" encoded in Base64 is: Zm9vYmFy
How it works
Base64 encoding converts binary data to ASCII text using 64 characters (A-Z, a-z, 0-9, +, /). Each 3 bytes of input becomes 4 Base64 characters. Padding with "=" is added when needed.
"foobar"input
→Zm9vYmFyBase64 output
Common use cases
- Encoding data in URLs and email
- Storing binary data in JSON or XML
- HTTP Basic Authentication headers
- Embedding images in HTML/CSS
- JWT token payloads
Try the encoder
Loading tool...