Javascript url encoding and decoding

Input string and press suitable key

encoded string


plain string

using escape/unescape function
This function makes a string portable, so that it can be transmitted across any network to any computer that supports ASCII characters. This function encodes special characters, with the exception of: * @ - _ + . / The escape() function should not be used to encode URIs. Use the encodeURI() function instead.

using uncodeURI/decodeURI function
The encodeURI() function is used to encode a URI. This function encodes special characters, with the exception of: , / ? : @ & = + $ # (Use encodeURIComponent() to encode these characters).

using encodeURIComponent/decodeURIComponent function
This function encodes special characters. In addition, it encodes the following characters: , / ? : @ & = + $ #