URL Encode Text Online (Percent Encoding)
Query strings break when they contain spaces, ampersands or slashes. This encoder applies encodeURIComponent so any value is safe to drop into a URL parameter.
Runs in your browser — your text is never uploaded or stored.
Text or parameter value
URL-encoded output
How to Use
- 1.Paste the value you want to put into a URL.
- 2.Copy the percent-encoded output.
- 3.Paste it after the = sign in your query string.
Advertisement
FAQ
What's the difference from encodeURI?
encodeURIComponent also escapes reserved characters like & and =, which is what you want for a single parameter value.
Are UTM parameters supported?
Yes — encoding campaign names with spaces or symbols is one of the most common uses.
Need more options?
URL Encode / Decode
Free online URL encoder and decoder. Percent-encode any string for safe use in URLs or decode %-encoded text back to plain characters. 100% browser-based.