Base64
Encode and decode
Input
Result
What you enter is never sent to a server. Everything is processed in your browser on this device.
How to use
- Under Source, choose Text or File.
- For text, pick Encode or Decode under Direction and type in the input box. The result appears right away.
- For a file, drop it in or click Choose file and it’s converted to Base64.
- Copy the result or save it with Download (.txt).
FAQ
Does it handle non-English text and emoji?
Yes. Text is converted to UTF-8 bytes before encoding, so accented letters, CJK characters, and emoji come back exactly as they were. Decoding also expects UTF-8, so Base64 made from another encoding will show a “not UTF-8 text” error.
It says the result isn’t UTF-8 text.
The Base64 holds binary data, such as an image or other file, rather than text. This tool decodes Base64 to text only and can’t turn it back into a file.
How do I turn an image into a data URL?
Choose File under Source and add the image. With “Include data: prefix” on, you get data:image/png;base64,… ready to paste into HTML or CSS. Turn it off to get the Base64 part only. Files are converted one at a time, up to 5 MB.
When should I use URL-safe?
Use it when encoded text goes into a URL parameter or a file name. It uses - and _ instead of + and / and drops the trailing = padding. When decoding, both standard and URL-safe input are accepted automatically, along with spaces, line breaks, a data: prefix, or missing padding.
Is Base64 encryption?
No. Base64 just rewrites data as plain characters, and anyone can decode it instantly. Don’t rely on it to hide passwords or personal data.
