JavaScript Global Functions
The decodeURI() function is used to decode a URI.
Tip: Use the encodeURI() function to encode a URI.
| Parameter | Description |
|---|---|
| uri | Required. The URI to be decoded |
![]()
The decodeURI() function is supported in all major browsers.
Decode a URI after encoding it:
The output of the code above will be:
JavaScript Global Functions
Your message has been sent to W3Schools.