URL encoder
Encode and decode text with encodeURIComponent or encodeURI.
encodeURIComponent
About URL encoding
- Component
- Encodes every reserved character, including
/ ? & =. Use it for query parameter values. - Full URL
- Keeps the characters that give a URL its structure (
/ ? # &). Use it for complete URLs.