How to use the URL encode and decode tool?
The URL encode and decode tool is very easy to use.
In the case of an URL to encode, simply set the URL in the left text area (under “URL to encode”). The tool will automatically give the result in the right text area (under “URL to decode”).
In the case of an URL to decode, set the URL in the right text area (under “URL to decode”) and the tool will directly give the result in the left text area (under “URL to encode”).
URL encoding
It is also known as percent-encoding. It is a mechanism for encoding information in a Uniform Resource Identifier (URI) under certain circumstances. Although it is known as URL encoding, it is, in fact, used more generally within the main Uniform Resource Identifier (URI) set, which includes both Uniform Resource Locator (URL) and Uniform Resource Name (URN)
The characters allowed in a URI are either reserved or unreserved (or a percent character as part of a percent-encoding).
Unreserved characters
- A
- B
- C
- D
- E
- F
- G
- H
- I
- J
- K
- L
- M
- N
- O
- P
- Q
- R
- S
- T
- U
- V
- W
- X
- Y
- Z
- a
- b
- c
- d
- e
- f
- g
- h
- i
- j
- k
- l
- m
- n
- o
- p
- q
- r
- s
- t
- u
- v
- w
- x
- y
- z
- 0
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- –
- _
- .
- ~
Other characters in a URI must be percent encoded.
Reserved characters:
- !
- *
- ‘
- (
- )
- ;
- :
- @
- &
- =
- +
- $
- ,
- /
- ?
- #
- [
- ]
Percent-encoding a reserved character involves converting the character to its corresponding byte value in ASCII and then representing that value as a pair of hexadecimal digits. The digits, preceded by a percent sign (%) which is used as an escape character, are then used in the URI in place of the reserved character. (For a non-ASCII character, it is typically converted to its byte sequence in UTF-8, and then each byte value is represented as above.)
Reserved characters after percent-encoding
! | %21 |
# | %23 |
$ | %24 |
% | %25 |
& | %26 |
‘ | %27 |
( | %28 |
) | %29 |
* | %2A |
+ | %2B |
, | %2C |
/ | %2F |
: | %3A |
; | %3B |
= | %3D |
? | %3F |
@ | %40 |
[ | %5B |
] | %5D |