String url = "http://www.%a4test.com/"; try { String decoded = URLDecoder.decode(url, "UTF-8"); System.out.println(decoded); } catch (Exception ex) { ex.printStackTrace(); }