URL Encode
Percent-encode text for safe use in URLs.
Percent-encodes everything unsafe in a query value (encodeURIComponent).
About URL Encode
URL Encode percent-encodes text so it can travel safely inside a URL: spaces, ampersands, question marks, Unicode and other reserved characters are converted to their %XX forms. Unencoded values are one of the most common causes of subtly broken API requests — a query value containing & silently splits into two parameters.
Use it to build correct query strings by hand, encode redirect URLs, or produce the expected encoded form for a test assertion. Encoding runs live and locally.
How to use
- Type or paste the text or URL component into the input box.
- The percent-encoded result appears immediately.
- Copy it into your query string, path segment or test expectation.
Frequently asked questions
When must a value be URL-encoded?
Any time user-controlled or special-character text goes into a URL: query parameter values, path segments, redirect targets. Characters like space, &, ?, #, + and = change the URL's meaning if left raw.
Why did my plus sign turn into %2B but spaces into %20?
Percent-encoding uses %20 for spaces. The + convention for spaces belongs to the older form-encoding style used in HTML form bodies; in modern URLs, + means a literal plus and must itself be encoded as %2B.
Should I encode a whole URL at once?
No — encoding a complete URL also encodes the : and / that give it structure. Encode individual components (a parameter value, a path segment), then assemble the URL. The Query Parameter Builder automates that.
