Java tutorial
//package com.java2s; public class Main { public static String hexToString(final String hexString) { return new String(hexToBytes(hexString)); } public static byte[] hexToBytes(String hexString) { int len = hexString.length(); byte[] array = new byte[len / 2]; for (int i = 0; i < len; i += 2) { array[i / 2] = (byte) ((Character.digit(hexString.charAt(i), 16) << 4) + Character.digit(hexString.charAt(i + 1), 16)); } return array; } }