How to use the Base64 encoder and decoder
The tool converts text in one direction at a time, and the result updates as you type.
- Paste or type your text into the Input box, or press Paste to take it from the clipboard.
- Set Mode to Encode to turn text into Base64, or to Decode to read a Base64 string.
- Tick URL-safe alphabet if the result will sit in a link, a filename or a JSON Web Token. It swaps
+and/for-and_and drops the=padding. The box only changes encoding. - Read the result in the output box. If a decode input is not valid Base64, a short error note appears instead.
- Press Copy or Download .txt, or Use as input to send the result back in and flip the mode to check a round trip.
Decoding is forgiving: it accepts both alphabets, restores missing padding and ignores spaces and line breaks. Encoding produces one unbroken line, without the 76-character wrapping that email attachments use.