What is URL encoding, URL decoding?
URL encoding stands for encoding certain characters in a URL by replacing them with one or more character triplets that consist of the
percent character "
%" followed by two hexadecimal digits. The two hexadecimal digits of the triplet(s) represent the
numeric value of the replaced character.
URL decoding on the other hand it's decoder for encoding job
Which Characters Are Allowed in a URL?
The characters allowed in a URI are either reserved or unreserved (or a percent character as part of a percent-encoding). Reserved characters are those characters that sometimes have special meaning, while unreserved characters have no such meaning. Using percent-encoding, characters which otherwise would not be allowed are represented using allowed characters. The sets of reserved and unreserved characters and the circumstances under which certain reserved characters have special meaning have changed slightly with each revision of specifications that govern URIs and URI schemes.
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:
! * ' ( ) ; : @ & = + $ , / ? % # [ ]
When and why would you use URL encoding?
When data that has been entered into HTML forms is submitted, the form field names and values are encoded and sent to the server in an
HTTP request message using method GET or POST, or, historically, via email. The encoding used by default is based on a very early version
of the general URI percent-encoding rules, with a number of modifications such as newline normalization and replacing spaces
+" instead of "
%20". The MIME type of data encoded this way is
and it is currently defined (still in a very outdated manner) in the HTML and XForms specifications. In addition, the
CGI specification contains rules for how web servers decode data of this type and make it available to applications.
When sent in an HTTP GET request, application/x-www-form-urlencoded data is included in the query component of the request URI. When sent in an HTTP POST request or via email, the data is placed in the body of the message, and the name of the media type is included in the message's Content-Type header.
http://coderh.com/tools/encode-decode/url/Search on: encode url online, decode url, url encode decode, url encode string, base64 url decode, decode url encoding, online url decode, php url decode, encoder, decoder