To the Top

URL Encode and Decode Tool

Buy Me A Coffee

URL Encode/Decode is required by RFC 3986. Simply put, The URLs containing the following characters need to be encoded with % (percent symbol) followed by two hexedecimal letters representing 8 bits.

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

For example, if you encode https://helloacm.com/tools/url-encode-decode/ it will be encoded into:

https%3A%2F%2Fhelloacm.com%2Ftools%2Furl-encode-decode%2F

URIs containing international characters first need to be converted into UTF-8 sequence of bytes and then each byte is converted to %HH where HH is the hexidecimal value for that byte. So URL encoding/decoding makes the URIs encoded uniformly across the world.

Javascript encodeURIComponent and decodeURIComponent Tool

With Javascript provides the handy URL encode/decode functions that are supported well in the modern browsers. decodeURIComponent is used to decode the text while encodeURIComponent is used to percent-encode the text (URL, URI, URN...).

PHP urlencode and urldecode

In PHP, the corresponding functions are urlencode and urldecode.

You could refer to this page on how to invoke APIs in Javascript (Ajax).

Share: List of Many Other Online Tools