Base64 Encoder and Decoder
Turn text into Base64, or Base64 back into text.
Text to encode
0 charactersResult
How to use it
- Choose encode or decode
Encode turns plain text into Base64. Decode turns Base64 back into text.
- Paste your input
The result appears as you type. Turn on URL-safe if the output goes into a link.
- Copy the result
Copy it, or press Swap to send the result back in as the new input.
This Base64 encoder and decoder converts text both ways and handles accents, Bangla, emoji and every other language. Choose the standard alphabet or the URL-safe one. It all runs in your browser, so tokens, headers and test strings are never uploaded.
Where Base64 shows up
The readable parts of a JSON Web Token are Base64 in URL-safe form. Decode one to see what it claims, but remember anyone can do the same.
Small images and fonts are sometimes placed straight into a page as a data link. The file is stored as Base64 inside the address.
Email was built for plain text, so attachments travel as Base64. That is why a file grows by about a third when it is sent.
HTTP basic authentication sends name and password as Base64. It is not secure on its own, so it must always go over HTTPS.
Common questions
What is Base64?
Is Base64 encryption?
What is URL-safe Base64?
Does it handle emoji and non-English text?
Why does decoding say my input is invalid?
More free tools
Paste JSON to format, check or minify it. Shows the line and column of any error.
Runs in your browserMake strong random passwords with a strength meter. Nothing is stored or sent.
Runs in your browserMake QR codes for links, text and WiFi. Pick colors and download PNG or SVG.
Runs in your browserCompare two texts and see what was added or removed, by line, word or character.
Runs in your browser