URL Encoder / Decoder

Encode or decode URLs and query parameters

Common Encoded Characters

%20
!
%21
#
%23
$
%24
&
%26
'
%27
+
%2B
=
%3D

What is URL Encoding?

URL encoding (percent encoding) converts special characters into a format safe for transmission in URLs. Characters like spaces, &, and = are replaced with percent-encoded values like %20, %26, and %3D.

Encoding Types

encodeURIComponent

For query parameter values. Encodes everything except: A-Z a-z 0-9 - _ . ~

hello world → hello%20world

encodeURI

For full URLs. Preserves URL structure characters: : / ? # [ ] @

https://... stays as-is

Common Encoded Characters

CharacterEncodedDescription
%20Space
&%26Ampersand
=%3DEquals
?%3FQuestion mark
/%2FForward slash

FAQ

Why do I need to encode URLs?

URLs can only contain certain characters. Special characters like spaces, &, and = must be encoded to be transmitted correctly in URLs and query strings.

What's the difference between + and %20?

Both represent a space. %20 is the standard URL encoding. + is sometimes used in query strings (application/x-www-form-urlencoded) but %20 is more universally compatible.