Base64 encode and decode
UTF-8 safe Base64 with URL-safe variant, both directions.
Runs on your device — never uploaded
How to base64 encode and decode
- Paste text or Base64
The tool detects which direction you probably want.
- Encode or decode
Toggle URL-safe alphabet if you need it for tokens or URLs.
- Copy
One click.
Frequently asked questions
Why does my decoded text look garbled?
The input was probably not UTF-8 text, for example binary data or a different encoding.
What is URL-safe Base64?
A variant using - and _ instead of + and /, with padding often removed, so it can appear in URLs and JWTs.
Is anything sent to a server?
No.