Decode base64 java. getBytes()); Example to convert a String to base64 .