com/
1 di 5 22/12/17, 16:51
URL Encode Decode - URL Percent Encoding a... https://www.url-encode-decode.com/
URL
Encode
and
Decode
Tool
Use the online tool from
above to either encode or
decode a string of text. For
worldwide interoperability,
URIs have to be encoded
uniformly. To map the wide
range of characters used
worldwide into the 60 or so
allowed characters in a URI, a two-step process is used:
Convert the character string into a sequence of bytes using the UTF-8 encoding
Convert each byte that is not an ASCII letter or digit to %HH, where HH is the
hexadecimal value of the byte
(The "ç" is encoded in UTF-8 as two bytes C3 (hex) and A7 (hex), which are then written as
the three characters "%c3" and "%a7" respectively.) This can make a URI rather long (up to
9 ASCII characters for a single Unicode character), but the intention is that browsers only
need to display the decoded form, and many protocols can send UTF-8 without the %HH
escaping.
The term URL encoding is a bit inexact because the encoding procedure is not limited to
URLs (Uniform Resource Locators (http://en.wikipedia.org/wiki/Url)), but can also be applied
2 di 5 22/12/17, 16:51
URL Encode Decode - URL Percent Encoding a... https://www.url-encode-decode.com/
The unreserved characters can be encoded, but should not be encoded. The unreserved
characters are:
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 - _ . ~
The reserved characters have to be encoded only under certain circumstances. The
reserved characters are:
! * ' ( ) ; : @ & = + $ , / ? % # [ ]
On the other hand, as many languages have their own 8-bit code page, handling all these
different 8-bit code pages would be a quite cumbersome thing to do. Some languages do not
even fit into an 8-bit code page (e.g. Chinese). Therefore, RFC 3629 (http://tools.ietf.org
/html/rfc3629) proposes to use the UTF-8 (http://en.wikipedia.org/wiki/UTF-8) character
encoding table for non-ASCII characters. The following tool takes this into account and offers
to choose between the ASCII character encoding table and the UTF-8 character encoding
table. If you opt for the ASCII character encoding table, a warning message will pop up if the
URL encoded/decoded text contains non-ASCII characters.
3 di 5 22/12/17, 16:51
URL Encode Decode - URL Percent Encoding a... https://www.url-encode-decode.com/
External Links
© Dan's Tools | Contact (/contact.php) | Privacy (/privacy.php) | About (/about.php) | For more dev
tools, check out danstools.com (http://www.danstools.com)
4 di 5 22/12/17, 16:51
URL Encode Decode - URL Percent Encoding a... https://www.url-encode-decode.com/
5 di 5 22/12/17, 16:51