Base 64 Encode and Decode
Encode your text with Base 64. Decode your text with Base 64. Free online tool to encode and decode text with/from Base 64.
What is Base 64?
According to definition of Base 64 in Wikipedia:
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 are designed to deal with ASCII. This is to ensure that the data remain 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 Text in Base 64
window.btoa(str) function encrypts the text into base 64 encoding. We have set some validation as well so that you will be getting proper Base 64 encryption. This base 64 encoding keeps the original format of the given text when decoded, so you don't need to worry about messing u your file content. Simply paste the data in the first text area and click encode. Then simply click on the blue copy button to copy the encoded text to the clipboard.
This can encode JSON, XML, YAML, Java, among any kind of text or files. It keeps the original format.
How to Decode Base 64 Value
window.atob(str) the function does the trick for us. It decodes your base 64 texts very efficiently. It will keep the original encoded text formatting so no need to format the text again after decoding. pate the base 64 encoded text into the first text box area and click on the decode button. then copy the original text via the copy button. We have placed the validation to check whether the text is actually base 64 encoded or not.
You can follow me on social media via @coderstea on Twitter, Linkedin, Facebook, or Instagram. We also share high-quality videos about programming on our Youtube channel. You can also publish your own post on CodersTea.com, just share your thought on Contact Us or let us know in the comments.