About the Base64 Encoder
Encode text to Base64 or decode it back, with full UTF-8 support, so accented letters, Korean and emoji survive the round trip, which plain btoa() in JavaScript does not handle. Choose the URL-safe alphabet for JWTs and URLs, drop padding, or wrap lines at 76 characters for email. You can also turn a local file into Base64 or a data URL without uploading it.
How to use it
- Choose Encode or Decode.
- Paste the text or Base64.
- Copy the result.
Example
- Input
- héllo ✓
- Result
- aMOpbGxvIOKckw==
Questions
Is Base64 encryption?
No. Base64 is an encoding that anyone can reverse. Never use it to hide passwords or secrets.
What is URL-safe Base64?
A variant that uses - and _ instead of + and /, so the result can go in a URL or a filename without escaping. JWTs use it, usually without the = padding.
Why does decoding say the result is binary?
The Base64 holds a file such as an image, not text. Decoding to text would produce garbage, so the tool tells you instead.