URL Encoder / Decoder
Encode and decode URL strings
Settings
Text to Encode
Encoding Types
URL Component
encodeURIComponent() - Encodes all special characters. Use for query parameters and path segments.
Full URL
encodeURI() - Preserves :, /, ?, #, etc. Use for complete URLs.
Form Data
application/x-www-form-urlencoded - Uses + for spaces. Common in HTML forms.
Encoded Result
Enter text to encode
Common Encodings
Character
Encoded
Name
space
%20 or +
Space
!
%21
Exclamation
#
%23
Hash
$
%24
Dollar
&
%26
Ampersand
=
%3D
Equals
?
%3F
Question
@
%40
At sign
Learn More
About URL Encoding
- •
encodeURIComponent()encodes all special characters - •
encodeURI()preserves URL structure characters - •Form encoding uses
+for spaces instead of%20 - •RFC 3986 defines which characters are reserved and must be encoded
URL Encoding in IAM
- •OAuth redirect_uri – Must be URL-encoded in requests
- •SAML RelayState – Often contains encoded URLs
- •Query Parameters – Special chars need encoding
- •Scopes – Space-separated, need proper encoding