Personally, I use these aliases for URL encoding and decoding: alias urlencode='python -c "import urllib, sys; print urllib.quote( sys.argv[1] if len(sys.argv) > 1 else sys.stdin.read()[0:-1])"' alias urldecode='python -c "import urllib, sys; print urllib.unquote(sys.argv[1] if len(sys.argv) > 1 else sys.stdin.read()[0:-1])"'

I can't comment on best answer in this thread, so here is mine..

URL encode your data in a hassle-free way, or decode it into human-readable format.

Decode This PHP. Edit: My problem is not that url decode isn't working, it works if I manually enter this encoded URL and use urldecode(), but when this encoded url is in the actual pages url and I use the _GET function then I try to decode it it stripes off everything after the "#" in the URL.

In PHP, the corresponding functions are urlencode and urldecode.

The utf8_decode() function decodes a UTF-8 string to ISO-8859-1.

Syntax

To percent-encode, for example: A common example is %20 and they are called percent encoding. Stack Exchange Network. API (Application Programming Interface) You could use the following two APIs to call the urlencode and urldecode remotely.

PHP urlencode and urldecode. Decoding Percent with Numbers Encoding (%20) in URLs.

But then I wrote a web service that took the base64 encoded data as a parameter in a POST call. You may have once in a while stumbled on a hyperlink from an email message or even a website containing two digits preceded by a percent sign. Both APIs cached the results hourly.

This function decodes a string, previously encoded with the utf8_encode() function, back to ISO-8859-1.

Raymond Updated 5 years ago Browser 10 Comments. I want to decode URL encoding, is there any built-in tool for doing this or could anyone provide me with a sed code that will do this? I did search a bit through unix.stackexchange.com and on the . UnPHP - The Online PHP Decoder. URL encoding, also known as percent-encoding, is a mechanism for encoding information in a Uniform Resource Identifier (URI) under certain circumstances. Let’s take a real live hyperlink as an example. Just checking this out? Eval + gzinflate + Base64.

Load sample data. Definition and Usage.

In this case the files are identical.

UnPHP is a free service for analyzing obfuscated and malicious PHP code. It all works fine in simple test cases where I encode some binary data and then decode the resulting string and write it to a new file.

To get started either copy your code below or choose a file to upload then click 'Decode This PHP'.