Base64 is a way of representing binary data in an ASCII string. 'Base64 decoding' is the process of transforming a base64 representation — a string of odd-looking text — back into the original binary or text data. ... Alternatively, type or paste in the text you want to base64–decode, then press the 'Decode' button.
How does Base64 decode work?
Decoding base64
- First, you remove any padding characters from the end of the encoded string.
- Then, you translate each base64 character back to their six-bit binary representation.
- Finally, you divide the bits into byte-sized (eight-bit) chunks and translate the data back to its original format.
What is Base64 encode and decode?
decode(input, output) − It decodes the input value parameter specified and stores the decoded output as an object. Base64. encode(input, output) − It encodes the input value parameter specified and stores the decoded output as an object.