Online Url Decoder Tool with References in Java, Python, and Javascript

The world’s simplest online URL decoder tool is here. Just type or paste a URL encoded string in the first textarea. The tool will automatically decode your string. You can then click in the second textarea to copy the decoded output.

URL Decoder

URL Decoding in Javascript

var encUrl = "https%3A%2F%2Fwww.google.com%3Fq%3DDevStint";
var decodedUrl = decodeURIComponent(encUrl);
console.log(decodedUrl);  // https://www.google.com?q=DevStint

URL Decoding in Java

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;

public class URLDecodingExample {

    public static String decodeUrl(String url) {
        try {
            return URLDecoder.decode(url, StandardCharsets.UTF_8.toString());
        } catch (UnsupportedEncodingException ex) {
            throw new RuntimeException(ex.getCause());
        }
    }

    public static void main(String[] args) {
        String encodedUrl = "https%3A%2F%2Fwww.google.com%3Fq%3DDevStint";
        String decodedUrl = decodeUrl(encodedUrl);
        System.out.println(decodedUrl);
    }
}
# Output
https://www.google.com?q=DevStint

URL Decoding in Python (3+)

import urllib.parse

encUrl = "https%3A%2F%2Fwww.google.com%3Fq%3DDevStint"
decodedUrl = urllib.parse.unquote(encUrl)
print(decodedUrl)
# Output
https://www.google.com?q=DevStint

References