URL Decoder

Enter text to URL encode or decode. Converts the text into a percent encoded string.

URL Decode

About URLEncoder

URL Encoder may be a simple and straightforward to use online tool for encoding URLs. you only got to type or paste a string within the input text area, the tool will automatically convert your string to URL encoded format in real time. Once the URL is encoded, you'll click within the output text area to repeat the encoded URL. Note that, our tool uses UTF-8 encoding scheme for encoding URLs.

What is URL encoding or Percent Encoding?

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

Alphabets / Digits / "-" / "_" / "~" / "."

Any other character aside from the above list must be encoded.

URL encoding, also referred to as percent encoding, may be a thanks to encode or escape reserved, unprintable, or non-ASCII characters in URLs to a secure and secure format which will be transmitted over the web . it's also utilized in preparing data for submitting HTML forms with content-type application/x-www-form-urlencoded.

How does URL encoding work?

URL Encoding works like this - It first converts the character to at least one or more bytes. Then each byte is represented by two hexadecimal digits preceded by a percentage sign (%) - (e.g. %xy). that provides us the URL encoded value.

The percentage sign is employed as an escape character that's why we also ask URL encoding as Percent encoding.

Percent Encoded = "%" HEXDIG HEXDIG

For instance, Let's understand the way to URL encode the character @. To encode @, we first convert it into a sequence of bytes using its ASCII value. The ASCII value of @ in decimal is 64 which when converted to hexadecimal comes bent be 40. We then precede the hex value with percentage sign , which provides us the ultimate URL encoded value @.

URL Encoding character classification

Following is that the classification of various sorts of characters that can't be placed directly inside URLs -

ASCII control characters: Characters within the range 0-31 and 127 within the ASCII character set are control characters. These characters are unprintable and can't be placed directly inside any URL without encoding. Some samples of control characters include backspace, printing operation , line feed, vertical tab, horizontal tab etc.