URL Encode

Encode URL using the UTF-8 encoding / Hexadecimal value of the byte

Encode URL

URL encoding is the process of converting special characters into their corresponding HTML entities. Most commonly, these characters are reserved characters used to structure web pages. URL encoding ensures that the correct amount of space is allotted for these character sets. URL encoding is especially important when working with URLs that are used in email messages. When used in conjunction with web forms, URL encoding prevents browsers from attempting to automatically submit data that includes reserved characters.

URL encoding is the process of encoding special characters (like spaces, hyphens, etc.) to make sure that it can be safely transmitted over the web. In URL encoding, characters are replaced with a % and a two digit code as shown in the table below.

What is URL encoding?

It is a special kind of encoding for characters. It allows storing any character with its ASCII value.  For example, encoding of "a" with ASCII value of 97 is "%61". So, %61 is a in URL.  URLs are limited to ASCII range (0–127) and cannot store characters outside this range.  URL encoding is essential for storing characters outside this range.  URL encoding is also used for internationalizing URLs.

How To Encode URL?

Encoding any URL using this free online tool, is very easy. You can encode URL with only one click.

  • Visit: https://www.webetool.com/url-encode
  • Paste or Type your URL in the blank box.
  • Press the Encode button.

It will instantly convert URL string into a sequence of bytes using the UTF-8 encoding or %hexadecimal value of the byte.

Which Characters Are Allowed in a URL?

The characters that are allowed in a URL are any characters that are valid for the hostname. The hostname is the part of the URL that comes after the first slash. For example, http://www.example.com/dir/file.html?var=1 If you are using a forward slash character, that is ok. If you are using a tilde character, that is ok. If you are using a question mark character, that is ok. If you are using the at symbol, that is ok. The only restriction is that the first character of the hostname must be a letter or number. For example, http://www.example.com/dir/file.html?var=1 can be considered a valid URL.

RFC 3986 section 2.3 Unreserved Characters (January 2005):

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9 - _ . ~

RFC 3986 section 2.2 Reserved Characters (January 2005):

! * ' ( ) ; : @ & = + $ , / ? % # [ ]

Why Should You Encode URL?

When you're working with URLs in your website or blog, you might run into the issue of how to properly encode the URL. URL is simply the web address of a page. For example, this blog post has the URL: https://en.wikipedia.org/wiki/Percent-encoding. When working with URLs, you might find that you have non-alphanumeric characters in your URL. One common example of this is when you have an ID number in your URL. For example, you might have a URL that looks like this: http://www.example.com/article/12345 To fix this, you can use URL encoding. URL encoding (or percent encoding) is a way to format URLs when there are non-alphanumeric characters. It's also a way to ensure that special characters are properly encoded and won't break your links.

Cookie
We care about your data and would love to use cookies to improve your experience.