Base64 Utility

Text entered into the Input text box will be treated as UTF-8 text, and converted into a byte stream that is then presented as Base64 in the Result text box. This is particularly useful for obfuscating HTML within a script block, such as the following:

<script src="http://lamoree.com/scripts/base64.js"></script> <script>document.write(decode64('YXNkZg=='));</script>

The following form assists in creating a Basic Authentication HTTP header. It uses Base64 to encode a password to prevent invalid characters in the HTTP header. The input to the Base64 function is username + ":" + password.


This utility transfers binary to/from hexadecimal and Base64 encoding.