About the URL Encoder
Encode special characters (spaces, &, ?, non-English letters) so text can be safely used in a URL. Choose whether you’re encoding a single value or a whole URL.
Percent-encode text for URLs and query strings — or switch to decoding.
Encode special characters (spaces, &, ?, non-English letters) so text can be safely used in a URL. Choose whether you’re encoding a single value or a whole URL.
encodeURIComponent encodes everything that isn’t safe inside a query value, including / ? & =. encodeURI leaves characters that structure a URL alone.