An Introduction to HTML: URL Encode (Uniform Resource Locator)

Uniform Resource Locators (URLs) | An Introduction to HTML: URL Encode

An Introduction to HTML: URL Encode

What is a URL?

URL full-form is Uniform Resource Locator. It is actually a web address. A URL can include words, i.e. ( or an Internet Protocol (IP) address, i.e. But most of the user use URL in the form of words because it is easy to recognize than numbers.

Syntax of a URL:



  • The scheme defines the type of Internet service (the most common is HTTP or HTTPS).
  • The prefix is used to define a domain prefix (the default for HTTP is www).
  • The domain defines the Internet domain name (like
  • The port is used to define the port number at the host (the default for HTTP is 80).
  • The path is used to define a path at the server (If omitted: the root directory of the site).
  • The filename is used to define the name of a document or resource.

Following is a list of some common types of schemes utilized in URLs:

  • HTTP “HyperText Transfer Protocol”: Common web pages. Not encrypted.
  • HTTPS “Secure HyperText Transfer Protocol”: Secure web pages. Encrypted.
  • FTP “File Transfer Protocol”: Downloading or uploading files.
  • File: A file on your computer.

URL Encoding

URL encoding is used to convert non-ASCII characters into a format that can be utilized over the Internet because a URL is sent over the Internet by using the ASCII character set only. 

If a URL includes characters outside the ASCII set, the URL has to be converted.

In URL encoding, the non-ASCII characters are replaced with a "%" followed by hexadecimal digits.

URLs cannot have spaces. URL encoding normally replaces a space with a plus (+) sign, or %20.

Following is a list of some character sets which are encoded by browser after submitting the text.

Character From Windows-1252 From UTF-8
%80 %E2%82%AC
£ %A3 %C2%A3
© %A9 %C2%A9
® %AE %C2%AE
À %C0 %C3%80
Á %C1 %C3%81
 %C2 %C3%82
à %C3 %C3%83
Ä %C4 %C3%84
Å %C5 %C3%85


Friends, according to my expertise, I have written complete information to help you with “HTML: URL Encode.” If this post is favourable for you or not, please tell me by commenting.

If you liked this post, do not forget to share it with your friends so they can get information about it.

You can ask us through comments if you still have questions or doubts, I will answer all your questions, and you can contact us for more information.

Please tell us through the comment section if you think we miss anything.

To be published, comments must be reviewed by the administrator.*

Previous Post Next Post