Percent-encode · Decode
URL encoder & decoder
Percent-encode text so it's safe inside a URL, or decode an encoded string back to plain text.
Examples
Output
Frequently asked questions
When should I URL-encode text?
Encode any value you put in a query string or path that contains spaces or special characters such as & ? # / or %.
How is this different from encodeURI?
This uses encodeURIComponent, which also encodes reserved characters like & = ? /, making it right for individual query values.
Is my data private?
Yes. Encoding and decoding run in your browser.