URL Encoder
Percent-encode text and URLs for safe use in query strings and links.
Loading tool...
How it works
The URL Encoder converts special characters, spaces and Unicode text into percent-encoded form (application/x-www-form-urlencoded style via encodeURIComponent), so the result is safe to embed in a URL query string.
Frequently asked questions
What's the difference from encodeURI?
This uses encodeURIComponent, which also escapes characters like &, = and ? — correct for encoding individual query parameter values rather than a full URL.