Base64 Encoder and Decoder
Encode and decode Base64 and Base64URL text, in your browser.
About the Base64 Encoder and Decoder
Base64 represents binary data with 64 printable characters. It appears in email attachments, data URLs, HTTP Basic authentication, certificates and tokens. Base64URL is the URL-safe variant used in JWTs, with - and _ instead of + and /.
Encoding is not encryption: anyone can decode Base64. The converter handles UTF-8 correctly and runs entirely in your browser.
How to use it
- Paste the text.
- Choose encode or decode, and Base64URL if needed.
- Copy the result.
Frequently asked questions
Is Base64 encryption?
No. Base64 is an encoding that anyone can reverse. Never rely on it to protect data; HTTP Basic authentication, for example, is only safe over HTTPS for this reason.
Why does Base64 output end with = signs?
Base64 encodes 3 bytes as 4 characters. When the input length is not a multiple of 3, = padding fills the last group. Base64URL often omits the padding.
How much larger is Base64 than the original?
About 33 percent: every 3 bytes become 4 characters.