URL Encoder
Make any text safe to put inside a URL, such as a query parameter value, a path segment or a redirect target.
Output
Your result will appear here.
Text is percent-encoded as a URL component, so reserved characters such as &, ? and / are escaped too.
Nothing to check yet
1 line · UTF-8
Processed locallyFiles and text are processed in your browser and are not uploaded to our servers.Learn more
Need the opposite? URL Decode
How to URL-encode text
- 01
Paste your text
Enter the value you want to place in a URL.
- 02
Encode
Every character that is not allowed as-is becomes a percent-escape.
- 03
Copy the result
Paste it into your URL, or download it.
Component encoding
- Encoding follows encodeURIComponent: letters, digits and - _ . ! ~ * ' ( ) stay as they are; everything else is escaped.
- Reserved characters are escaped too, so a = b & c becomes a%20%3D%20b%20%26%20c.
- Spaces become %20, not +.
- Characters outside ASCII are encoded as UTF-8 bytes: é becomes %C3%A9.
Encode values, not whole URLs
Because : and / are escaped as well, encoding a complete address such as https://example.com/page produces https%3A%2F%2Fexample.com%2Fpage. That is correct when the address is itself a parameter value, but not when you want a working link.
Related tools
Frequently asked questions
Is a space encoded as %20 or +?
As %20. The + form belongs to HTML form encoding; %20 is valid everywhere in a URL.
Why is / encoded as %2F?
This tool encodes a value for use inside a URL, where a slash could otherwise be read as a path separator.
How do I decode a URL?
Use the Decode button here, or the URL Decoder.