URL Encode / Decode
Encode or decode URLs, paths and query parameters to inspect escaped characters and troubleshoot links.
What is URL Encode / Decode tool?
URL component encoding makes a text value safe to place inside one part of a URL, such as a query parameter. It is useful when a search phrase, nested address, or callback value contains spaces, ampersands, or non-ASCII characters. This browser tool encodes and decodes locally without an account; it does not open the entered address or check the destination website.
Encode a value, not a whole address
The encoder uses JavaScript's encodeURIComponent. Paste the parameter value itself, not the complete query string, unless you intentionally want its separators encoded as data. Encoding a whole address turns its colon and slashes into encoded characters, so the result is no longer an ordinary clickable URL. Use URL Parser to inspect the separate parts of an address first.
Follow a parameter example
Input value:
tea & cake
Encoded output:
tea%20%26%20cake
The result can be used as the value in ?q=tea%20%26%20cake. Here %26 represents the ampersand inside the value, rather than a separator introducing another parameter. Decoding that component restores the original phrase. If application code already uses URLSearchParams, let it encode raw values instead of manually encoding them a second time.
Understand spaces and plus signs
This decoder uses decodeURIComponent, so a literal plus sign remains a plus sign. Some HTML form encodings use plus to represent a space, but that is a different parsing convention. For example, a+b stays a+b, while a%20b becomes a b. Determine whether the input came from a URL component, a form body, or an already-parsed parameter before changing it.
Avoid double encoding and malformed escapes
Encoding %20 again produces %2520 because the percent sign is now data. Decode only the layer your integration expects; repeatedly decoding untrusted input can change its meaning. Incomplete percent sequences and invalid UTF-8 escapes are rejected rather than silently repaired. Encoding malformed Unicode, such as an isolated surrogate, can also fail.
Percent encoding is not encryption, URL validation, HTML escaping, or a security filter. Sensitive values remain recoverable and can appear in logs or browser history. For a standard Base64 payload, use Base64 Encode / Decode first, then encode its component only if the receiving protocol needs that extra layer. Compare the final request with URL Parser and preserve an untouched source value for troubleshooting.
FAQ
Usually just the parameter value or path component. encodeURIComponent escapes URL separators too, so encoding a complete address changes its structure. Use URL Parser when you need to inspect an entire address.
This tool uses decodeURIComponent, which leaves a literal + unchanged. Plus-as-space belongs to form-style parsing. Use %20 for a component-encoded space and confirm the receiving protocol.
The value was encoded again: the percent sign became %25. Pass raw values to URLSearchParams rather than pre-encoding them. Decode only the expected layer, not repeatedly until the text looks readable.
A percent escape may be incomplete, contain non-hex characters, or represent invalid UTF-8 bytes. Check the original request value for truncation. The decoder does not guess or repair an encoding.
No. It is reversible representation, not encryption or destination validation. Do not put secrets in URLs merely because they are encoded; they can still appear in logs and history.
No. This tool only transforms the input locally with browser functions. To inspect a whole URL, continue with URL Parser; website availability and ownership are separate checks.



