How to use it
- Type or paste your text, or add a file.
- Choose Encode or Decode.
- Press Convert and copy or download the result.
What Base64 is
Base64 writes any data using only letters, numbers and a few symbols, so it can pass through systems made for plain text, such as emails and web addresses. It is encoding, not encryption, so it does not hide anything.
Text and files
Encode text or a file into Base64, or decode Base64 back into text or a file. It is used for small images in web pages, data in APIs and attachments in emails.
Good to know
Base64 makes data about one third larger. Do not use it to protect secrets. Everything is done in your browser.
Example: put a small image inside a web page
You have a tiny icon and you want it inside your CSS without another file. Add the file and copy the Base64 text, then use it in a data: address. The decoder works the other way: paste a long Base64 string and get the text or the file back.
Quick tips
- Base64 is not encryption. Anyone can decode it.
- The encoded text is about one third larger than the original.
- Use it for small files only.
Common problems and fixes
- Decoding gives strange symbols. The data is not text. Choose the file download instead.
- It says the input is invalid. There may be spaces or line breaks that are not part of the code, or characters were lost when you copied it.
Questions
Does it work with Greek text?
Yes. Text is handled as UTF-8, so Greek letters and emoji are encoded correctly.
What if the decoded data is not text?
Then you get a file to download, for example an image.
What is URL-safe Base64?
A variant that uses - and _ instead of + and /, so it can be placed in a web address.