URL encoder
Encode any string input to URL format.
About this tool
The URL encoder makes text safe to put in a web address. Characters that mean something in a URL, or aren’t allowed in one, are replaced with percent codes: a space becomes %20, & becomes %26 and é becomes %C3%A9. So “a b&c=d/é” becomes a%20b%26c%3Dd%2F%C3%A9.
How to use the URL encoder
- Type or paste the text, usually one value rather than a whole URL.
- The encoded text appears as you type.
- Copy it into your link or query string.
When you need it
- Query string values, such as a search term or a redirect address: ?q=red%20shoes&next=%2Faccount.
- Links built by hand in emails, spreadsheets or code.
- API requests that pass text, JSON or other URLs as parameters.
Encode values, not whole URLs
This tool encodes every reserved character, the way JavaScript’s encodeURIComponent does, which is right for a single value. Run a whole URL through it and the :// and / are encoded too, which breaks the link. Encode each value, then put the URL together. To read an encoded URL, use the URL decoder. It all runs in your browser.
Similar tools
URL decoder
Decode URL encoded input back to a normal string.
Color converter
Convert your color to multiple other formats.
Binary converter
Convert text to binary and the other way for any string input.
Hex converter
Convert text to hexadecimal and the other way for any string input.
Ascii converter
Convert text to ASCII character codes and the other way for any string input.
Decimal converter
Convert text to decimal and the other way for any string input.