URL Encoder / Decoder

Mode:
Scope:
Input 0 chars
Encoded Output 0 chars
Auto-detect ON
encodeURIComponent — Encodes all characters except: A–Z a–z 0–9 - _ . ! ~ * ' ( ). Best for encoding individual query parameters or path segments.

How It Works

URL encoding (percent-encoding) converts characters that are not safe for use in URLs into a %XX format, where XX is the hexadecimal value of the character’s UTF-8 byte(s).

When to use which mode

ModeFunctionSafe characters (not encoded)
encodeURIComponentEncode a single query param or path segmentA–Z a–z 0–9 - _ . ! ~ * ' ( )
encodeURIEncode a full URL, preserving its structureAll of the above + ; , / ? : @ & = + $ #

Common encoded characters

CharacterEncodedUse case
Space%20Separates words in a path
&%26Ampersand in query value
=%3DEquals sign in query value
+%2BPlus sign in query value
#%23Hash character in URL
?%3FQuestion mark in URL

Encode HTML entities → HTML Entity Encoder Convert encodings → Universal Encoder/Decoder