What is URL Encode?
URL encoding (percent-encoding) escapes characters that are not safe inside URLs. Use it for query strings, path segments, and form data.
How to use
- Paste a URL or text segment.
- Pick Encode or Decode.
- Copy the output.
Example
Use this sample to confirm what URL Encode does before pasting your own data.
hello world?q=inbrowser
hello%20world%3Fq%3Dinbrowser
When to use it
Use URL Encode for quick local checks, debugging, documentation prep, and one-off conversions where opening a full IDE or command-line workflow would be slower. For production-critical data, always review the output before committing or shipping it.
Frequently asked questions
What is the difference between encodeURI and encodeURIComponent?
encodeURI preserves reserved characters like : / ? & =. encodeURIComponent escapes them, which is what you want for a single query parameter.
Does this run on the server?
No. It uses the browser native encodeURIComponent / decodeURIComponent.