Developer and design
Base64 encoder and decoder
Encode text to Base64 or decode Base64 back to text, with full UTF-8 support and a URL-safe option. Runs in your browser.
- Free
- No signup
- Nothing stored
Base64
The result appears here as you type.
Why use it
Base64 turns any data into plain letters and digits so it can travel through systems that only handle text: email attachments, data URLs, HTTP headers and JSON Web Tokens all use it.
This tool handles accented letters and emoji correctly, accepts both standard and URL-safe Base64, and never sends your data to a server.
How to use it
- Choose Encode or Decode.
- Paste your text or Base64.
- For use in URLs or tokens, turn on URL-safe when encoding.
- Copy the result.
How it works and its limits
- Text is encoded as UTF-8 before conversion, so non-English characters survive a round trip.
- URL-safe Base64 replaces + and / with - and _, and drops the = padding.
- Decoding accepts both alphabets and ignores line breaks. Binary data such as images is reported rather than shown as garbled text.
- Base64 is an encoding, not encryption: anyone can decode it.
Questions
Is Base64 encryption?
No. Base64 only changes how data is written, and anyone can reverse it. Never use it to hide passwords or secrets.
Why is Base64 output longer than the input?
Every 3 bytes become 4 characters, so encoded data is about a third larger than the original.
What is URL-safe Base64?
A variant that uses - and _ instead of + and /, which have special meanings in URLs. It is used in JSON Web Tokens and many APIs.