This software provides library to encode/decode Java strings to/from Base64 encoding and variants. Just include the .jar file into your classpath, to encode: string.getbytes("x-base64"); to decode: new String(bytearray, "x-base64");