How to use
- Paste your text or Base64 string.
- Click Encode or Decode.
- Turn on URL-safe if the Base64 is used in a URL or JWT.
- Click Copy to copy the result.
How it works
Text is first converted to UTF-8 bytes, then every 3 bytes become 4 Base64 characters. Decoding reverses this and checks that the result is valid UTF-8 text.
Frequently asked questions
Is Base64 encryption?
No. Base64 only changes how data is written. Anyone can decode it, so never use it to hide passwords.
What is URL-safe Base64?
It uses - and _ instead of + and / so the result can be used in URLs and file names. JWT tokens use this format.
Why does decoding show an error?
The input has characters that are not Base64, or the decoded data is binary (like an image) rather than text.