A URL encoder encodes data into the URL or percent format. A URL is composed from a very limited set of characters. These characters include digits, letters and a few other special characters. Any other 'unsafe characters' cannot be put into a URL. URL encoding is used to pass these disallowed characters into a URL by changing them into a 'URL Safe' format. For example, one of the most commonly encoded characters is a space which has an ASCII value of 32. When you convert 32 to hex it equals 20, which is preceded by a '%' to give us the URL encoded value, %20.
What is URL?
URL-encoding, sometimes referred to as "percent-encoding", is used for encoding information within a Uniform Resource Indentifier (URI). It is often employed to make user submitted HTML form data web address safe.