Text and encoding
Base64 encoder
Paste text, choose encode or decode, and copy the result.
How to use it
- Choose Encode or Decode.
- Paste the text. Spaces in a code are ignored when decoding.
- Copy the result. If the code is not valid, the tool reports an error instead of the wrong text.
Base64 turns a sequence of bytes into letters, digits, plus and slash, so it can travel through places that only allow text characters. It is not encryption. Anyone who can see the code can turn it back into the original text. Passwords are not protected this way.
The tool uses UTF-8. Letters such as č, ć, ž, š and đ stay correct if the other side also decodes UTF-8, which modern tools do. An equals sign at the end of the code is not an error. It pads the length and is part of a valid Base64 string.
Questions
Is Base64 a way to protect a password?
No. It is only another way to write the same text. For a password, use the generator and a password manager.
Why is there an equals sign at the end?
Base64 groups data in threes of bytes. If the length is not divisible by three, the end is padded with =.
Can I encode an image?
This page is for text. You can make an image smaller with the image compressor.