URL Decoder
URL Decoder is used to decode portions of the URL that
have been encoded using URL encoding and restore them to their original form.
All processing happens on the client-side, locally in your browser. No data is uploaded.
Paste URL encoded text below
Decoded text
Settings
How the input is converted. Each is explained below.
History
- 2017-10-01Tool Launched
Settings explained
- Decode reserved characters
Reserved characters give a URL its structure, such as & and = in a query. Turn this on to decode everything, as for a value taken out of a URL (decodeURIComponent). Turn it off to decode a whole URL and leave the reserved characters it encoded as they are (decodeURI).
Inputname%3DBill%20Gates%26og%3Dtrue
Decode reserved characters onname=Bill Gates&og=true
Decode reserved characters offname%3DBill Gates%26og%3Dtrue
Background
Certain characters need to be encoded (escaped) in URL. This is also called as Percent encoding.
Read more at wikipedia
Example Substitutions
How to do URL encoding in various programming languages
| Language | Encode | Decode | Example | Documentation |
|---|---|---|---|---|
| C# | System.Web.HttpUtility.UrlEncode() | System.Web.HttpUtility.UrlDecode() | UrlEncode() UrlDecode() | UrlEncode() UrlDecode() |
| VB .NET | System.Web.HttpUtility.UrlEncode() | System.Web.HttpUtility.UrlDecode() | UrlEncode() UrlDecode() | UrlEncode() UrlDecode() |
| Java | java.net.URLEncoder.encode() | java.net.URLDecoder.decode() | encode() decode() | encode() decode() |
| JavaScript | encodeURI() | decodeURI() | encodeURI() decodeURI() | encodeURI() decodeURI() |
| Python | urllib.urlencode() | urllib.unquote() | urlencode() unquote() | urlencode() unquote() |
| Ruby | uri.URI.escape() | uri.URI.unescape() | escape() unescape() | Documentation |