URL Encode/Decode

How to use

Choose Encode to convert special characters to percent-encoded form, or Decode to reverse the process. Then click Convert.

FAQ

What is URL encoding?

URL encoding (percent encoding) replaces unsafe ASCII characters with a "%" followed by two hex digits. For example, a space becomes %20.

Why is URL encoding needed?

URLs can only contain a limited set of characters. Special characters like spaces, &, =, and + must be encoded so they are not misinterpreted by browsers and servers.

What is the difference between encodeURI and encodeURIComponent?

encodeURI encodes a full URL and leaves characters like /, ?, &, = intact. encodeURIComponent encodes a URL component (like a query value) and encodes those characters too.

You May Also Like