Home › Tools › Base64 Encoder & Decoder
Base64 Encoder & Decoder
Convert text to Base64 and back. Accented characters, emoji and non-Latin scripts are handled correctly rather than producing garbled output.
How to use it
- Paste the text you want to encode, or the Base64 you want to decode.
- Tick URL-safe if the output is going into a URL or a filename.
- Press Encode or Decode, then copy the result.
Why it stays private
Base64 is often the last step before something sensitive is embedded — an API key in a config file, a token in a header, a password in a connection string. Decoding it in a local page rather than a remote service keeps that value off the network.
Questions
What is Base64 for?
It represents arbitrary binary data using only 64 printable characters, so it can be carried safely through systems that only handle text — email, JSON, HTTP headers, XML and URLs. It is an encoding, not encryption: anyone can reverse it.
What does the URL-safe option do?
Standard Base64 uses + and /, both of which have special meanings in URLs, and pads the end with =. The URL-safe variant substitutes - and _ and drops the padding.
Why did my non-English text come out garbled on another site?
Because those tools encode the raw characters instead of their UTF-8 bytes. This one encodes the UTF-8 bytes first, which is what almost every modern system expects, so accented letters, emoji and CJK text round-trip correctly.