Base64 Encode and Decode
Turn text or files into Base64 and back. Free, no sign-up.
- Free
- No limits
- No sign-up
Why POW
Both directions
Turn text or a file into Base64, then turn Base64 back into text or a file you can save.
Any language
Accents, Chinese, Arabic and emoji come back exactly as you typed them.
No limits
No account and no cap on how many times you use it. Text and files both work.
How to encode and decode Base64
- 1
Pick Encode or Decode
Under What to do, choose Encode to make Base64 or Decode to read it.
- 2
Add your text or file
Choose Text and type or paste, or choose File and tap Choose a file. The result appears at once.
- 3
Copy or save it
Use Copy, or tap Download .txt. A decoded file is saved with Download file as pow-decoded plus the right ending.
Encode and decode Base64 online
POW Base64 Encode and Decode changes text or any file into Base64, and changes Base64 back into the original. Base64 is a way of writing data using only letters, digits and a few signs, so it can travel safely inside emails, web addresses and config files. Type or paste, and the answer shows up right away. It is free, needs no sign-up and has no limits.
Text in, text out
Choose Encode, then Text, and type or paste what you want to convert. The Base64 version appears in the Result. Switch to Decode, paste Base64 and you get the text back. Text is handled as UTF-8, so accents, Chinese, Arabic and emoji survive the trip and come out exactly as they went in.
Encode a whole file
Pick File, tap Choose a file and the tool reads it and gives you its Base64 text. This is useful for putting a small image or a font inside a style sheet or a data file. The file is read into your browser's memory, and the tool sets no size limit of its own. Very large files depend on how much memory your device has.
Decode to a file
If the Base64 is really a picture, a PDF or another file, choose Decode and tap Download file. POW guesses the ending from the first bytes of the data: png, jpg, gif, pdf, zip, webp, gz, mp3 or ogg. If it cannot tell, the file is saved as .bin. The file name always starts with pow-decoded.
URL-safe Base64
Standard Base64 uses plus and slash signs, which cause trouble inside web addresses. Turn on the URL-safe option to use minus and underscore signs instead, as in JWT tokens. A second switch leaves off the equals signs at the end. When decoding, both kinds are accepted, spaces and line breaks are ignored and missing padding is fine.
Clear error messages
If the Base64 is wrong, the tool shows the first character that is not allowed and where it sits. It also refuses text that mixes the standard signs with the URL-safe ones, and it says when part of the text is missing. If the decoded bytes are not text, it says so and offers them as a file.
Questions
Is POW Base64 Encode and Decode free?
Yes. It is free, with no trial, no daily limit and no paid plan. Encode and decode as much as you like.
Do I need to sign up?
No. Open the page, pick Encode or Decode and paste your text. There is no account, no email and nothing to install.
What is Base64?
Base64 writes data using 64 safe characters: letters, digits, plus and slash. It is used to carry files and text inside places that only accept plain text, such as emails, JSON and web addresses. It is not a way to hide anything.
Does it work with emoji and other languages?
Yes. Text is converted as UTF-8, so accents, Chinese, Arabic and emoji are encoded and decoded exactly as typed.
Can I encode a file?
Yes. Choose File, then Choose a file, and you get its Base64 text. The tool sets no size limit, but very large files depend on the memory of your phone or computer.
How do I turn Base64 back into a file?
Choose Decode, paste the Base64 and tap Download file. It is saved as pow-decoded with an ending guessed from the data, or .bin if it cannot tell.
What does URL-safe mean?
It swaps the plus and slash signs for minus and underscore, so the text can sit inside a web address without trouble. JWT tokens use this style. You can also drop the equals signs at the end.
Why does it say my Base64 is not valid?
The message names the first character that is not allowed and its position, or says the length does not fit because part of the text is missing. Input that mixes plus and slash with minus and underscore is also refused.
Why can't it show my decoded result as text?
Decoding to text needs valid UTF-8. If the bytes are a picture or another kind of file, the tool tells you so and offers a file download instead.
What is a data: address?
It is a way to put a whole file inside a link, written as data:type;base64 followed by the Base64 text. Turn on Add a data: address in front when you encode, and it is added for you.
Is my text or file uploaded?
No. Everything is worked out in your browser on your own device. The file you choose is read there and nothing is sent anywhere.
Can I also make a hash or encode a web address?
Yes, with other tools on this site. Use Hash Generator for MD5 and SHA hashes, and URL Encoder and Decoder for percent codes in web addresses.