Convert characters that are not allowed in URLs into %XX form (and back).
Your input is never sent to a server — everything runs in your browser
As a parameter value (encodeURIComponent) converts every reserved character including / ? = & — use this for search keywords or form values that will be embedded inside a URL. As a full URL (encodeURI) preserves the URL structure and only converts characters like spaces and non-ASCII letters — use this to encode a complete URL in one go.