URL Encode online

The tool uses UTF-8 encoding scheme.

Latest From The Blog

About URLEncoder

URL Encoder is a simple and easy to use online tool for encoding URLs. You just need to type or paste a string in the input text area, the tool will automatically convert your string to URL encoded format in real time. Once the URL is encoded, you can click in the output text area to copy the encoded URL. Note that, our tool uses UTF-8 encoding scheme for encoding URLs. The world wide web consortium recommends that UTF-8 should be used for encoding.

Apart from the tool, our website also contains various articles about how to encode URLs in different programming languages.

What is URL encoding and why is it required?

URLs in the world wide web can only contain ASCII alphanumeric characters and some other safe characters like hyphen (-), underscore (_) tilde (~), and dot (.).

Following types of characters cannot be placed directly inside URLs -

ASCII control characters: Characters in the range 0-31 and 127 in the ASCII character set are control characters. These characters are unprintable and cannot be placed directly inside any URL without encoding. Some examples of control characters include backspace, carriage return, line feed, vertical tab, horizontal tab etc.

Reserved characters: Characters like ?, :, /, #, & have special meaning within URLs. Therefore you can't place them directly inside URLs without encoding or escaping.

Unsafe characters: Many characters like space, <, >, {, } are unsafe and must be encoded before placing them inside URLs.

Non ASCII characters: Finally, you cannot securely transmit any character outside the ASCII character set inside URLs. You must encode them.

URL encoding, also known as percent encoding, is a way to encode or escape reserved, unprintable, or non-ASCII characters in URLs to a safe and secure format that can be transmitted over the internet. It is also used in preparing data for submitting HTML forms with content-type application/x-www-form-urlencoded.

Common ASCII characters and their URL encoded value

CharacterURL Encoding (UTF-8)

You can refer the complete ASCII character encoding reference in this blog post.

All right! So what are you waiting for? Start using our online tool from now on to perform URL encoding in a safe, secure, and easy way.

We also have a tool to decode URLs back to their normal form. It is hosted at https://www.urldecoder.io. Don't forget to check that out if you need to decode URL encoded strings.

You can read more on the blog.