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).

Input
name%3DBill%20Gates%26og%3Dtrue
Decode reserved characters on
name=Bill Gates&og=true
Decode reserved characters off
name%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

Common characters after percent-encoding (ASCII or UTF-8 based)
Character Encoded Value
newline %0A or %0D or %0D%0A
space %20
" %22
% %25
- %2D
. %2E
< %3C
> %3E
\ %5C
^ %5E
_ %5F
` %60
{ %7B
| %7C
} %7D
~ %7E

How to do URL encoding in various programming languages

LanguageEncodeDecodeExampleDocumentation
C#System.Web.HttpUtility.UrlEncode()System.Web.HttpUtility.UrlDecode()UrlEncode() UrlDecode()UrlEncode() UrlDecode()
VB .NETSystem.Web.HttpUtility.UrlEncode()System.Web.HttpUtility.UrlDecode()UrlEncode() UrlDecode()UrlEncode() UrlDecode()
Javajava.net.URLEncoder.encode()java.net.URLDecoder.decode()encode() decode()encode() decode()
JavaScriptencodeURI()decodeURI()encodeURI() decodeURI()encodeURI() decodeURI()
Pythonurllib.urlencode()urllib.unquote()urlencode() unquote()urlencode() unquote()
Rubyuri.URI.escape()uri.URI.unescape()escape() unescape()Documentation

Related tools