URL Encode

Percent-encode text for safe use in URLs.

Keep or share the finished result Copy or share after running the tool. Saved tools and settings stay in this browser.
More

URL encode your text

Type or paste text above to percent-encode it for safe use in a web address. Characters that have a special meaning in URLs, like spaces, ampersands and question marks, are replaced with percent codes so the link works as intended. This is handy for building query strings and API requests. It all runs in your browser.

Query strings

Encoding each value in a query string keeps reserved characters from breaking the URL structure.

Frequently asked questions

What does URL encoding do?

It replaces characters that are unsafe or reserved in URLs with percent codes, so the address is read correctly.

When do I need it?

Whenever you put text such as search terms or parameters into a URL or query string, encoding keeps the link valid.