from urllib.parse import unquote url = "endpoint?%7B%0D%0A++%22foo%22%3A%5B%22bar%22%2C%22baz%22%5D%0D%0A%7D" url = unquote(url) print(url)