URL Encoder & Decoder

Switch between component encoding (encodeURIComponent) and full URL encoding (encodeURI) to match your use case.

Encode: component — spaces become %20, unicode is percent-encoded.

Which mode should I use?

Component — for a single query value, path segment, or any string that must become “fully” escaped. Full URL — when you need to encode a mostly valid URL but fix unsafe characters in the path or query without breaking :// and delimiters.

Decoding must use the matching mode, or you may get a URI error.