Encode special characters for use in URLs (percent-encoding) or decode URL-encoded strings back to readable text. Choose between encodeURIComponent (for URL parameters) or encodeURI (for full URLs).