URL Encode / Decode Tool
Percent-encode and decode URL components for query strings, paths, and form data. Handy for building links, debugging redirects, and escaping special characters in URLs.
All computations run locally in your browser, no data uploaded to server.
How To Use
- Enter a URL component or query string that needs encoding or decoding.
- Click Encode to percent-encode reserved characters.
- Click Decode to turn an encoded URL back into readable characters.
- Use Copy output to copy the result.
Usage Example
Input string:
q = "hello world" & lang = en
Encoded output:
q%20%3D%20%22hello%20world%22%20%26%20lang%20%3D%20en
Decoding that output reproduces the original string.
Frequently Asked Questions
What does URL encoding do?
URL encoding (percent-encoding) replaces characters that are not safe in a URL, such as spaces and punctuation, with a percent sign followed by their hexadecimal byte value.
Is my URL sent to a server?
No. Encoding and decoding run entirely in your browser with native JavaScript functions. Nothing is uploaded.
Does it handle Unicode URLs?
Yes. encodeURIComponent percent-encodes multi-byte UTF-8
characters correctly.