Encode or decode URL components and query strings.
Percent-encode URL components or decode percent-encoded strings. Useful for debugging query strings, building API URLs, or working with any text that passes through a URL.
Paste a URL, query string, or URL component.
Choose encode or decode; the result updates live.
encodeURI preserves URL structure (:/?#&=) so a full URL remains valid. encodeURIComponent encodes those too — use it when encoding a value that goes inside a query string.