Micro Tools
Menu

URL Encoder / Decoder

Encode query parameters, decode percent-encoded strings, or encode a full URL while preserving its structure.

Operation Mode

Encodes a query parameter or path segment — escapes all reserved characters including /, ?, #, &.

Input
Paste a query value or path segment
0 chars
Output
Percent-encoded component
0 chars
Method Comparison
When to use each encoding function
encodeURIComponent

Encodes everything except A–Z a–z 0–9 - _ . ! ~ * ' ( ). Use for individual query parameter values or path segments — it will escape / ? & = #.

Query values
encodeURI

Preserves URL-structural characters : / ? # [ ] @ ! $ & ' ( ) * + , ; =. Use when you have a full URL and want to encode only the unsafe characters.

Full URLs
decodeURIComponent

Reverses percent-encoding for any encoded string. Throws on malformed sequences like %ZZ. Use to read back values that were encoded with either encodeURI or encodeURIComponent.

Decoding
Common Encoded Characters
Quick reference for frequently used percent-encoded values
CharEncodedDescription
(space)%20Space
!%21Exclamation mark
"%22Double quote
#%23Hash / fragment
$%24Dollar sign
%%25Percent sign
&%26Ampersand
'%27Single quote
(%28Open parenthesis
)%29Close parenthesis
*%2AAsterisk
+%2BPlus sign
,%2CComma
/%2FForward slash
:%3AColon
;%3BSemicolon
=%3DEquals sign
?%3FQuestion mark
@%40At sign
[%5BOpen bracket
]%5DClose bracket
{%7BOpen brace
|%7CPipe
}%7DClose brace