Java tutorial
//package com.java2s; import java.io.UnsupportedEncodingException; import android.util.Base64; public class Main { public static String base64decode(String base64) { String decoded = ""; if (base64 != null) { try { decoded = new String(Base64.decode(base64, Base64.DEFAULT), "UTF-8"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } } return decoded; } }