URL Decode

url.decode method is used to Decode URL-encoded strings

url.decode(string <str>) : string

Returns a string in which the sequences with percent (%) signs followed by two hex digits have been replaced with literal characters.

Example #1: URL String Decode

url.decode("Wapka%20Is%20Awesome%20so%20do%20you%21") --> output: Wapka Is Awesome so do you!


url.decode() does not decode plus symbols (‘+’) into spaces. decoder.url() does.