URL encoding and decoding

URL encoding and decoding

A URL has to take on a certain format, a format that is not exactly human readable. So how then are both a human and a machine supposed to be able to read the same URL?
This tutorial focuses on:
  • URL encoding
  • URL decoding

URL encoding

Through the process of URL encoding, a URL is converted into valid URL format. This means that certain characters in the URL are converted into their proper URL encoded value such as the space character (URL encoded value of %20). This encoding is usually performed when a form is submitted because data submitted through a form can contain special characters such as ".", "#" or the space character that can have special meaning, are not valid in a URL, or can be altered during the transfer of the data.
Generally, any character that is not a number or letter (non alphanumeric) should be URL encoded. Examples of such characters include the "!", "@", "#", "$", and "%" characters.
As you will notice in the chart below, encoded values are in hexadecimal. This is because hexadecimal values are used to display non-standard letters and characters in a web browser.
A list of commonly encoded characers and their encoded value:
Character encoding
CharacterEncoded value
<space>%20 OR +
NOTE: The space character can be encoded as "%20" or as "+"

URL decoding

Through the process of URL decoding, a URL is converted back into a string of regular characters that are human readable.
Use this URL encoder/decoder tool to encode and decode URL's:

Add comment

reload, if the code cannot be seen
(↑) Write code
Attantion! Corona virus Countrys: Africa: Algeria Burkina Faso Cameroon Democratic Republic of Congo Nigeria Senegal South Africa Togo ---- Americas: Argentina Bolivia Brazil Canada Chile Colombia Costa Rica Dominican Republic Ecuador French Guiana Guadalupe Honduras Jamaica Martinique Mexico Panama Paraguay Peru United States -- Eastern Mediterranean: Afghanistan Bahrain Egypt Iran Iraq Jordan Kuwait Lebanon Morocco Oman Pakistan Qatar Saudi Arabia Tunisia United Arab Emirates Europe Albania Andorra Armenia Austria Azerbaijan Belarus Belgium Bosnia and Herzegovina Bulgaria Croatia Cyprus Czechia Denmark Estonia Finland France Georgia Germany Gibraltar Greece Holy See (Vatican City) Hungary Iceland Ireland Israel Italy Latvia Liechtenstein Lithuania Luxembourg Malta Moldova Monaco Netherlands North Macedonia Norway Poland Portugal Romania Russia San Marino Serbia Slovakia Slovenia Spain Sweden Switzerland Turkey Ukraine United Kingdom South-East Asia Bangladesh Bhutan India Indonesia Maldives Nepal Sri Lanka Thailand Western Pacific Australia Brunei Darussalam Cambodia China Hong Kong Japan Macau Malaysia New Zealand Philippines Republic of Korea Singapore Taiwan Vietnam
Famous Quotes for you

"Whether you think you can or you think you can't, you're right." -Henry Ford

Last Comments
Follow us
Flag's Cloud
Flag Counter


Sign in for a closer look at the website
Create your own account!

Sign in
Already registered? Very nice, just sign in!

Enter Website