Back to Blog
string·

URL Encoding Explained: Percent-Encoding

URL encoding makes special characters safe in URLs and query strings. Learn which characters need it and and when to use encodeURI or encodeURIComponent.

url-encodingpercent-encodinghttpjavascript

Try it yourself

Put these concepts into practice with the free online tool on DevGizmo.