MegaTools.live

URL component encoder

Escape a single query parameter value, including spaces and ampersands.

How to use URL component encoder

Prepare one value for inclusion in a query string. Encoding an entire URL also escapes its structural separators. Apply the encoder once to the original value to avoid double encoding.

Worked example

Input
tea & coffee
Output
tea%20%26%20coffee