EncodingTool 03
URL Encoder
Make a value safe to place in a URL. Spaces, ampersands, slashes and non-ASCII characters are converted to percent escapes.
Encode URL value
08 / 232Result
WaitingRun the tool and the result appears here. Copy it or download it — nothing leaves this tab.
Privacy
Your file is read with the browser's File API and processed in this tab. Nothing is uploaded, and no copy is kept on a server.
How to use it
Paste the raw value you want to put into a URL.
The encoded form appears immediately, with spaces as %20.
Copy the result into your query parameter or path segment.
When to use it
Query parameters
Encode a search term that contains spaces or an ampersand.
UTM values
Make campaign names URL-safe before adding them to a link.
API testing
Build a request URL by hand without breaking the query string.
Questions
Should I use + or %20 for spaces?
Use %20 in paths and modern query strings. The + convention belongs to form submission encoding.
Does it encode the whole URL?
It encodes the text you give it, including : and /. Encode individual values, not a complete URL.
Is my text sent anywhere?
No. Encoding uses the browser's built-in functions in this tab.
Should I encode a whole URL or just a value?
Encode the value, not the URL. Encoding the whole string turns slashes and colons into escapes and breaks the address; encodeURIComponent semantics are what a parameter needs.
Is %20 or + the correct space encoding?
Both work in different contexts: %20 is valid anywhere, while + only means space in form-encoded query strings. Use %20 when the value may appear in a path.