Encode / Decode
Switch between URI and component-safe transforms with friendly decode errors.
Use encodeURI() for full URLs and encodeURIComponent() for individual
parts like query values. Decode modes use the browser’s built-in URI decoders and surface malformed
input safely.
MDN: encodeURI MDN: encodeURIComponent MDN: decodeURIComponent