URL Decoder
Decode percent-encoded text. A malformed % sequence reports an error instead of a partial string.
Rated 4.6 out of 5 based on 351 reviews
How to URL-decode
- Paste an encoded string.
- Choose Component or Form for query values, URI for a full encoded URL.
- Read the decoded text, or fix broken % sequences if the status reports an error.
URL decoding
Inverse of percent-encoding
| Component / form | + mapped to space, then decodeURIComponent |
|---|---|
| URI | decodeURI. Does not decode reserved URL characters |
What URL decoding is
This page reverses percent-encoding. Component and Form treat + as a space, then decode %HH sequences. URI uses decodeURI and leaves reserved URL characters in place.
See also the URL encoder.
Fail-safe decoding
Incomplete escapes such as %2 throw. The page clears output so you do not copy a half-decoded value.
Decoder questions
Are + signs decoded?
In Component and Form modes, yes. Plus becomes a space, then percent-decoding runs. URI mode uses decodeURI and does not treat plus as space.
Why did decoding fail?
A % sequence is incomplete or not valid hex. Fix the input. The page will not invent missing bytes.