URL Encoder / Decoder

Encode special characters for URLs or decode percent-encoded strings.

What is URL Encoding?

URL encoding (also called percent-encoding) converts special characters into a format that can be safely transmitted in URLs. Characters like spaces, ampersands, and question marks have special meanings in URLs, so they must be encoded to be used as data.

Common Encodings

CharacterEncoded
Space%20
!%21
#%23
$%24
&%26
@%40

FAQ

When should I URL encode?

URL encode when passing data as query parameters, form data, or any user input that will be included in a URL.

What's the difference between encodeURI and encodeURIComponent?

encodeURIComponent encodes all special characters, while encodeURI leaves characters like : / ? & intact. This tool uses encodeURIComponent for complete encoding.