JavaScript decodeURIComponent() Online
Decode URI component.
Run details
The output updates as you type. The tool processes input in your browser.
Worked example
Percent-decoding a component can restore characters such as slash and ampersand. In form-encoded values, plus may represent a space.
a%20b%2Fc%3Fd%3De
a b/c?d=e
JavaScript example
console.log(decodeURIComponent("a%20b%2Fc%3Fd%3De"));
Expected native output
a b/c?d=e
Using this operation in JavaScript
The interactive result uses JavaScript. JavaScript string indexes count UTF-16 code units. Use code-point iteration when working with supplementary Unicode characters.