URL decoding converts percent-encoded text such as %20 back into readable characters so you can see what a URL or query value contains.
For beginners, the key is to identify what you copied: one isolated piece of a URL or an entire address. The URL Decoder handles both, but the selected scope determines which characters are treated as data and which remain part of the URL’s structure.

What percent-encoding actually changes
Percent-encoding replaces characters that are unsafe or reserved in a URL with a percent sign followed by two hexadecimal digits. A space is written %20. Text outside ASCII is first converted to UTF-8 bytes, and every byte receives its own percent group. Accented letters, Chinese characters, and emoji can therefore return to the same readable characters after decoding.
Percent-encoding is reversible substitution, not encryption: it makes data fit a URL but does not conceal it. The IETF URI Generic Syntax standard defines how URI characters and percent-encoded bytes are organized. A decoded URL is readable text, but readable text is not always ready to be inserted into a different URL without further encoding.
- Letters and digits can normally appear directly in a URL.
- Spaces and punctuation are commonly represented with percent groups.
- Accented letters, CJK characters, and emoji use one percent group per UTF-8 byte.
- Reserved delimiters may be escaped when they represent data rather than URL structure.
Choose component mode or full URL mode
The scope should match the part of the URL you copied. Choosing between the two modes is not a cosmetic setting: it changes which characters are escaped or preserved.
| Mode | Use it for | Behavior |
|---|---|---|
| URL component | One query value, path segment, or fragment | Escapes every reserved character, including &, =, /, ?, and #. It also escapes !, ', (, ), and * for strict portability. |
| Full URL | A complete web address | Keeps structural characters such as :, /, ?, and # intact while escaping unsafe content such as spaces and non-ASCII characters. |
At decode time, the same distinction matters. Use URL component when the text is one value that should be interpreted as data. Use Full URL when the text is an address whose hierarchy and separators need to stay recognizable. The result remains a converted text string, so parameter boundaries are still visible in the returned URL.
The implementation uses JavaScript’s encodeURIComponent and encodeURI functions, together with decodeURIComponent and decodeURI for the reverse operation. You can consult MDN’s encodeURIComponent reference for the underlying component behavior.
Decode your first URL in five steps
Use the following order with the URL Decoder:
- Select the scope. Choose URL component for a single query value, path segment, or fragment. Choose Full URL for a complete address that begins with a scheme such as https://.
- Select the direction. Choose Decode to turn percent-encoded text back into readable characters. Encode performs the opposite operation.
- Paste the text. Put the URL or isolated value into the input box. The result updates instantly as you type.
- Review the output or error. Valid input produces a decoded string. Malformed input produces a clear error rather than a broken string.
- Copy a valid result. Click Copy when the output is ready to move into the appropriate URL, API request, or code.
A complete link copied from a browser is generally a Full URL case. A value copied from after a parameter name is usually a URL component case.
Follow one URL through the decoder
Consider this complete address:
https://example.com/my%20files/report.pdf?q=hello%20world&city=S%C3%A3o%20Paulo
With Full URL selected and the direction set to Decode, the readable result is:
https://example.com/my files/report.pdf?q=hello world&city=São Paulo
The path’s %20 becomes a space, %C3%A3 becomes the accented letter ã, and the scheme, domain, path separators, query marker, parameter names, and parameter separator remain recognizable.
This decoded form is useful for inspection, but it is not necessarily the encoded transport form required in a request. To rebuild a working link, select Encode and Full URL. That process restores the percent encoding while preserving the address structure.
Component mode is especially important when the data contains a reserved character. For example, %26 represents an encoded ampersand used as data. Decoding it produces a literal &, but that literal must be encoded again before being inserted into another query value. Otherwise, it can be mistaken for the delimiter separating parameters.
Read decoding errors before retrying
A valid percent sequence contains a percent sign followed by exactly two hexadecimal digits. The hexadecimal digits are 0–9, A–F, and a–f. Decoding stops when the input contains:
- A lone percent sign, such as a final % with no following byte.
- An invalid pair such as %zz.
- A truncated multi-byte sequence, such as %C3 without the required continuation byte.
These errors are useful because a malformed sequence cannot be reversed reliably. The decoder identifies the problem instead of silently returning corrupted text.
- Return to the original source and inspect the text named in the error message.
- Check for a missing percent sign or a percent sign followed by something other than two hexadecimal digits.
- Copy the complete value rather than a shortened fragment from a display, log, or message.
- If a full address fails but one parameter appears valid, switch to URL component and paste only that parameter’s value.
- Do not delete the percent sign or guess replacement digits; correct the source encoding.
Match the direction and scope to your task
Decoding is for reading existing percent-encoded content. Encoding is for preparing plain text to travel safely inside a URL. Pair the direction with the smallest scope that matches the job.
| Goal | Direction | Scope | Reason |
|---|---|---|---|
| Read an encoded query value | Decode | URL component | Turns the escaped bytes into the original readable value. |
| Inspect a complete shared link | Decode | Full URL | Reveals the text while retaining the overall address structure. |
| Build a safe query or path value | Encode | URL component | Escapes reserved characters so the value cannot break the surrounding URL. |
| Prepare a redirect or callback URL | Encode | Full URL | Keeps structural delimiters and escapes unsafe content. |
For a complete address that must be carried inside another query parameter, treat it as two separate operations. First encode the inner address with Full URL. Then encode that complete string as a URL component for the outer parameter. This preserves the inner URL’s structure while protecting its delimiters from becoming outer query separators.
Decoding and encoding are inverse operations, but their scopes should match. A value decoded as a component should be re-encoded as a component; a full URL decoded as an address should be re-encoded as a full URL.
Check decoded text before reusing it
- Separate reading from rebuilding. A decoded result reveals content, but it may contain spaces or reserved characters that need encoding in its destination.
- Protect component data. Encode literal &, =, ?, #, or / before placing a decoded value into another query or path component.
- Decode once unless another layer is confirmed. A remaining percent sign may be intentional, or the source may contain double encoding.
- Keep URL structure visible. Use Full URL when scheme, host, path, query, and fragment separators are part of the text you need to preserve.
- Do not confuse readability with trust. The decoder performs conversion; it does not assess whether a destination is safe or legitimate.
Keep sensitive links on your device
The URL Decoder performs all processing locally in your browser using plain JavaScript. Your pasted input never leaves your device: there is no upload, no account, and no server that receives the text. It also keeps working offline after the page has loaded. These properties make it suitable for inspecting internal addresses, personal data, or sensitive tokens without sending them to a remote processing service.
Your final beginner routine is simple: identify whether the input is a component or a full address, choose Decode, check that the output is valid, and copy it only when needed. Before inserting the text into another URL, encode it again with the scope required by that destination.
For a deeper look, see UTF8 Decode for Beginners: Read Bytes and Verify Results.
For a deeper look, see Decode URL Free, No Sign-Up: Results Stay Local.