Base64 encode and decode (text and files)
Encode text as UTF-8 Base64, or decode Base64 back to text or a file.
Good to know
- RFC 4648 defines the standard alphabet and a URL-safe one that uses - for 62 and _ for 63.
- Decoding is strict. Characters outside the alphabet, input that mixes both alphabets, and impossible lengths are errors.
- Whitespace and line breaks are ignored.
Your input is processed in this browser only and never sent to a server. Results follow the standards and library behavior; check them before you put them in production.