URL codec converts text safely for use inside URLs and reverses the operation. It relies on the browser native encodeURIComponent / decodeURIComponent API, so processing stays local.