Many use encoding and decoding on daily basis including me, so once I made a simple script for encoding and decoding the input string with base64.
1) Download the file and save the text file as PHP file.
2) Place the file in your root directory.
3) Execute the file from browser.
4) Enter the string to and decode or encode it by selecting the options.