Base64 encode and decode



Encoding/Decoding Scheme


Try Other Convertor

Your Support Matters!

Instead of directly asking for donations, I'm thrilled to offer you all nine of my books for just $9 on leanpub By grabbing this bundle you not only help cover my coffee, beer, and Amazon bills but also play a crucial role in advancing and refining this project. Your contribution is indispensable, and I'm genuinely grateful for your involvement in this journey!

Any private key value that you enter or we generate is not stored on this site, this tool is provided via an HTTPS URL to ensure that private keys cannot be stolen, for extra security run this software on your network, no cloud dependency

Base64 is a group of similar binary-to-text encoding schemes that represent binary data in an ASCII string format by translating it into a radix-64 representation. The term Base64 originates from a specific MIME content transfer encoding. Base64 encoding schemes are commonly used when there is a need to encode binary data that needs to be stored and transferred over media that is designed to deal with textual data. This is to ensure that the data remains intact without modification during transport. Base64 is commonly used in a number of applications including email via MIME, and storing complex data in XML.

How to encode/decode base64 via command line

openssl base64 -d -in myfile.jpg.b64 -out myfile.jpg
openssl base64 -in myfile.jpg -output myfile.jpg.b64
echo -n 'Hello' | openssl base64
openssl enc -base64 -d <<< SGVsbG8gOGd3aWZpLm9yZwo=
base64 -i <in-file> -o <outfile>
base64 --decode <outfile>

base64 --decode
echo Hello | python -m base64