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

  1. Copy https://example.com/search?q=tea&sort=new, including its own query.
  2. Encode the entire value and save the resulting string as one parameter value.
  3. Look for %3F and %26 where the source had a question mark and ampersand.

Worked example

Input

https://example.com/search?q=tea&sort=new

Expected result

https%3A%2F%2Fexample.com%2Fsearch%3Fq%3Dtea%26sort%3Dnew

Check the result

A single decode should recover the full original URL and both query parameters.

Continue with another guide

Cookie
We care about your data and would love to use cookies to improve your experience.

Learn how we use cookies