Free URL Encode / Decode Online

Would you like to:

or

ABOUT FREE URL ENCODE & DECODE ONLINE

Free URL Encode / Decode Online is a free online tool to encode your urls. You just need to paste your string into the input area. Then press either:

  • Encode: to url-encode the string (encode the string so that it can be safely used in url).
  • Decode: to url-decode the string.
What is URL Encoding (or Percentage Encoding)?

URL Encoding, also known as Percentage Encoding, is a technique to encode data in Uniform Resource Identifier (URI) so that it can be safely used in url / uri. It is also used for encoding data when your request body is "application/x-www-form-urlencoded" in form submission.

Why use Free URL Encode / Decode Online?
Completely free

Our tool is completely free. You don't need to install any software to encode & decode url. You just need to navigate to our site and use it instantly.

Secure and private

We don't process or store any of your encoded / decoded data. All encoding / decoding operation is performed in your browser.

How does URL encoding work?

URL Encoding works by converting url-unsafe characters into url-safe character, so that it can be safely used in url.

URL characters are classified into:

Classification

Characters

Description

Encoding required?

Safe characters

Alphanumericals (A-Z, a-z, 0-9), dot (.), understore (_), tilde(~), hyphen (-)

These are characters that can be safely used in url without encoding.

Reserved characters

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

These characters has a special meaning (reserved purpose) in a certain context. So these characters need to be encoded to be safely-used in a url.

ASCII control characters

Characters that have ASCII code 127 or ASCII code in the range of 0-31 in the ASCII charset

These are control characters, so it has to be encoded to be safely used in a url.

Unsafe characters

space < > { } | ` ^ \

These are unsafe characters that absolutely need encoding to be safely-used in a url, otherwise it might corrupt the url.

How url encoding works under the hood?

URL Encoding works by escaping (converting) url-unsafe characters to url-safe character, so that it won't corrupt the url. So you can implement the url encoding yourself without using any standard library in your framework / programming language.

URL Encoding works by escaping (converting) url-unsafe characters to url-safe character, so that it won't corrupt the url. So you can implement the url encoding yourself without using any standard library in your framework / programming language.

To implement the url encoding manually without using standard library, we simply need to replace url-unsafe characters with corresponding escape characters in the table below:

newline

space

"

%

-

.

<

>

\

^

_

`

{

|

}

~

%0A or %0D or %0D%0A

%20

%22

%25

%2D

%2E

%3C

%3E

%5C

%5E

%5F

%60

%7B

%7C

%7D

%7E