URL Encoder/Decoder
Encode and decode URLs and analyze their components
URL Encoder/Decoder
Encode and decode URLs and analyze their components
๐ฎ Encoding Methods
For query parameters
For complete URLs
Decode URL
Swap / Clear
๐ Plain Text / URL
๐ URL Encoded
๐ Quick Examples
๐ก About URL Encoding
What is URL Encoding?
URL encoding is a mechanism to convert characters into a format that can be transmitted over the Internet.
When to Use:
- โข Query parameters with spaces/special chars
- โข Form data submission
- โข API requests with special characters
- โข File names in URLs
Encoding Methods:
encodeURIComponent(): Encodes all special characters except: A-Z a-z 0-9 - _ . ~
encodeURI(): Preserves URL structure characters like : / ? # [ ] @
Common Encodings:
- โข Space:
%20
- โข Plus:
%2B
- โข Ampersand:
%26
- โข Question mark:
%3F