WebTools

Useful Tools & Utilities to make life easier.

URL Encode | Encode Your URL Online For Free

Encode your URL to make them transmission-safe.


URL Encode | Encode Your URL Online For Free

URL Encode

The process of converting unusual or unprintable characters into a format that web servers and browsers can all understand is known as URL encoding. Uniform Resource Names (URNs), Uniform Resource Identifiers (URIs), and Uniform Resource Locators (URLs) can all benefit from information encoding. Certain characters in the URL can be substituted with one or more character triplets, which are made up of two hexadecimal numerals and the percent character. The numerical value of the characters that are replaced is represented by the hexadecimal digits in the character triplets. When submitting data from HTML forms in HTTP requests, URL encoding is frequently utilized.

Picture By : Storyset.com

URL Encoding Example

Space: The most common URL Encoded character that you will probably come across is space. The space character has an ASCII value of 32 in decimal, which equals 20 in hexadecimal. The URL encoded value, %20, is now obtained by simply placing a percent sign (%) before the hexadecimal representation.

Why we need URL Encoding?

Sometimes you have to pass characters like "\ > # % | ^ [ ] } spaces, which are not allowed for URLs. For instance, because it would be challenging to view the entire URL in texts containing whitespace, whitespace is not a permitted character for a URL.

When passing reserved characters for a URL—like! # $ % & '( ) * +, / : ; =? @ []—is necessary. For instance, the character? is used to indicate the beginning of query parameters; if this character is not encoded in the path or query parameter itself, the syntax may be broken.