decodeURIComponent()
AD · 728×90
Google AdSense / Яндекс.Директ
URL
decodeURIComponent()
Decodes a percent-encoded URI component
→ stringPHP: urldecode()ES3+
encodedURIstring
Percent-encoded string to decode
decodeURIComponent(encodedURI)
RESULT
— click Run or press Ctrl+Enter —
Parameter Reference
ParameterTypeStatusDescription
encodedURIstringrequiredPercent-encoded string to decode
About

decodeURIComponent() converts percent sequences (%XX) back into their original characters. Used when parsing URL query parameters, processing history API data, or decoding data from GET requests. Invalid percent sequences throw URIError — always use try/catch on untrusted input.

Browser Support

Introduced in ES3 (1999) alongside encodeURIComponent. Supported by all browsers without exception.

Tips & Gotchas