URL Encoder
This tools allows you to encode URLs quickly and easily.
URL Encoder
Enter the URL you wish to encode in the text box above and then click "Encode URL." The URL Encoder will try its best to parse the entered string and identify all URL components, including the scheme (e.g., http or https), domain name, port number, path, query parameters, fragment identifier, and, if present, username and password. The tool will then encode each component and reassemble the URL before displaying the result on the page.
This process could fail if the entered URL is malformed, if the scheme part is omitted, or if the delimiting characters ("/", "?", " :", "#", "@" ) are found in the “unexpected” places. If you encounter any errors or unexpected results, please ensure that the entered URL is well-formed.
The encoding mechanism implemented by this tool mostly follows the guidelines of RFC 3986 and can be summarized as follows:
- Alphanumeric characters (a-z, A-Z, 0-9) are not encoded.
- The scheme section is not encoded.
- All non-alphanumeric characters (except "-", "_", ".") found in the query parameters and fragment identifier sections are percent-encoded.
- Non-alphanumeric characters found in other sections are encoded according to the specific rules of each section.
- Spaces are replaced with "+" in the query parameters and fragment identifier sections and percent-encoded as "%20" anywhere else.
- Non-ASCII characters (e.g., accented letters) require encoding using UTF-8 and percent-encoding.
Percent-encoding is performed by replacing a character with a "'%" symbol followed by two hexadecimal digits representing the character's numeric code. The following table shows percent-encoded values for the ASCII special characters:
Char Encoding Char Encoding
space %20 ; %3B
! %21 < %3C
" %22 = %3D
# %23 > %3E
$ %24 ? %3F
% %25 @ %40
& %26 [ %5B
' %27 \ %5C
( %28 ] %5D
) %29 ^ %5E
* %2A _ %5F
+ %2B ` %60
, %2C { %7B
- %2D | %7C
. %2E } %7D
/ %2F ~ %7E
: %3A Limitations: This tool does not validate the entered URL and does not convert international domain names into punycode (see Unicode to Punycode converter).
To decode a URL use URL Decoder.
Related Tools
Contact
Missing something?
Feel free to request missing tools or give some feedback using our contact form.
Contact Us