HTML URL Encoding
URL encoding converts characters into a format that can be safely transmitted over the Internet.
URL - Uniform Resource Locator
Web browsers request pages from web servers by using a URL.
The URL is the address of a web page like: http://www.w3schools.com.
URL Encoding
URLs can only be sent over the Internet using the
ASCII character-set.
Since URLs often contains characters outside the ASCII set, the URL has to be converted. URL encoding converts
the URL into a valid ASCII format.
URL encoding replaces unsafe ASCII characters with
"%" followed by two hexadecimal digits corresponding to the
character values in the ISO-8859-1 character-set.
URLs cannot contain spaces. URL encoding normally replaces a space with a + sign.
Try It Yourself
If you click the "Submit" button below,
the browser will URL encode the input before it is sent to the server. A page at the
server will display the received input.
Try some other input and click Submit again.
URL Encoding Examples
| Character |
URL-encoding |
| € |
%80 |
| £ |
%A3 |
| © |
%A9 |
| ® |
%AE |
| À |
%C0 |
| Á |
%C1 |
| Â |
%C2 |
| Ã |
%C3 |
| Ä |
%C4 |
| Å |
%C5 |
For a complete reference of all URL encodings, visit our
URL Encoding Reference.
 |
W3Schools' Online Certification Program
The perfect solution for professionals who need to balance work, family, and career building.
More than 4000 certificates already issued!
|
The HTML Certificate documents your knowledge of HTML, XHTML, and CSS.
The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.
The XML Certificate documents your knowledge of XML, XML DOM and XSLT.
The ASP Certificate documents your knowledge of ASP, SQL, and ADO.
The PHP Certificate documents your knowledge of PHP and SQL (MySQL).
|