Convert between text and URL encoding (percent-encoding). Instantly turn non-ASCII letters, spaces, and symbols into %xx
URL encoding (percent-encoding) is a scheme that converts characters that cannot be used directly in a URL (such as non-ASCII letters, spaces, and symbols) into a sequence of hexadecimal digits prefixed with "%". For example, a space becomes %20, and the Japanese character "あ" becomes %E3%81%82 in UTF-8. This lets you safely embed characters into URLs and query strings.
encodeURIComponent is for encoding a single part of a URL, such as a query parameter value, and it also encodes symbols like : / ? # [ ] @ ! $ & ' ( ) * + , ; = . encodeURI is for encoding a complete URL and leaves those reserved characters unencoded so the URL structure is not broken. To safely pass a parameter value, encodeURIComponent is the usual choice.
No. The encoding and decoding happen entirely in JavaScript inside your browser. The text you enter is never sent to or stored on a server.