URL Encode/Decode

Encode or decode URL components safely.

About URL Encode/Decode

Encode special characters in a string so it's safe to use in a URL, or decode a percent-encoded URL string back to readable text. Handles spaces, ampersands, question marks, and all other reserved characters defined in RFC 3986.

FAQ

What characters need to be URL encoded?
Characters like spaces, &, =, ?, #, /, and non-ASCII characters must be percent-encoded to be safely included in URLs.
What's the difference between encodeURI and encodeURIComponent?
encodeURI encodes a full URL but leaves characters like : / ? # intact. encodeURIComponent encodes everything — use it for query parameter values.
Why does my URL have %20 in it?
%20 is the percent-encoded form of a space character. Browsers often display it as a space, but the raw URL contains %20.

Related

More