Base64 encode / decode
Encode text to Base64 or decode it back, entirely in your browser with full UTF-8 (emoji included) support. Nothing is transmitted.
How to use the base64 encode / decode
- Paste your text or Base64 string into the box.
- Press Encode or Decode.
- Copy the result.
Encoding, not encryption
Base64 represents bytes using 64 safe ASCII characters so binary data can travel through text-only channels like email, JSON, or data URIs. It is not security: anyone can decode it instantly with no key, so never use it to protect secrets. The output is about a third larger than the input, and trailing = signs are padding. The URL-safe variant swaps +/ for -_ and drops padding. Everything runs in your browser with full UTF-8 support, so emoji round-trip correctly and nothing is sent anywhere. To protect data for real, generate a key with the AES key generator.
Code & API examples
Use this from the command line or your code.
echo -n 'hello' | base64
echo 'aGVsbG8=' | base64 -d
See all endpoints at /api/tools/.
Frequently asked questions
vpn.golf is a no-logs WireGuard VPN. Pick a hole, take the shot.
Step up to the tee for free