window object), the respective functions for base 64 handling are btoa() and atob(). binascii has the two functions b2a_base64 and a2b_base64. certutil -decode and certutil -decode provide a possibility to encode/decode a file in base 64 if no tool can be installed. base64 utility. Perl module MIME::Base64 <img src="data:…, ">) in HTML to embed (usually binary data) data (encoded in Base64) within the HTML document itself.