LumenToolHub
Home
About
Contact
URL Encoder/Decoder
Encode and decode URLs, URIs, and query strings
URL Input
Encode URL
Decode URL
Encode Component
Decode Component
Clear
Copy Result
Output
URL Components
Statistics
0
Input Length
0
Output Length
0
Encoded Chars
0
Special Chars
URL Examples
Spaces in URL
Special Characters
Unicode Text
How to Use
Encoding Options
•
Encode URL
: Encodes entire URL using encodeURI()
•
Decode URL
: Decodes entire URL using decodeURI()
•
Encode Component
: Encodes URL components using encodeURIComponent()
•
Decode Component
: Decodes URL components using decodeURIComponent()
When to Use
•
encodeURI()
: For complete URLs (preserves ://?/&=)
•
encodeURIComponent()
: For URL parameters and components
•
Spaces
: Become %20 or + in different contexts
•
Unicode
: Characters are encoded as UTF-8 byte sequences
URL Encoding Rules
• Reserved characters (! * ' ( ) ; : @ & = + $ , / ? % # [ ]) are encoded
• Unreserved characters (A-Z a-z 0-9 - _ . ~) are not encoded
• Spaces become %20 (or + in application/x-www-form-urlencoded)
• Non-ASCII characters are encoded as UTF-8 byte sequences