URL Encode
Encode a full URL as a single component for use inside another URL’s query string.
Encode a full URL as a single component for use inside another URL’s query string.
How to use
- Copy https://example.com/search?q=tea&sort=new, including its own query.
- Encode the entire value and save the resulting string as one parameter value.
- Look for %3F and %26 where the source had a question mark and ampersand.
Worked example
Input
https://example.com/search?q=tea&sort=newExpected result
https%3A%2F%2Fexample.com%2Fsearch%3Fq%3Dtea%26sort%3DnewCheck the result
A single decode should recover the full original URL and both query parameters.