URL Encoder
Encode text so it is safe to use inside a URL, converting spaces and special characters into their percent-encoded equivalents.
About this url encoder
URLs can only safely contain a limited set of characters, spaces, symbols, and non-English characters need to be encoded before being placed in a query string or path.
How url encoder works
Your text is converted using standard percent-encoding, where unsafe characters are replaced with a % followed by their hex code, for example a space becomes %20.
Common uses
- Encoding a search query to safely include in a URL
- Preparing a parameter value for a query string
- Encoding special characters for an API request URL
How to use this tool
- Enter your text.
- Click Process.
- Copy the URL-encoded result.
What to know before using it
Encodes the text you provide as a URL component, it does not validate whether the resulting full URL is itself well-formed.
Privacy and browser-first processing
Your text is encoded entirely in your browser and is never uploaded or stored.
Frequently asked questions
Why does a space become %20?
Spaces aren't allowed in URLs, %20 is the percent-encoded (hex) representation of a space character, the standard way to represent it safely.