URL Encoder/Decoder
Encode and decode URL components and full URIs.
Component encodes all special characters (for query params).Full URI preserves :, /, ?, #, & (for complete URLs).
What is URL Encoding?
URL encoding (percent-encoding) replaces unsafe ASCII characters with a "%" followed by two hexadecimal digits. It's essential for passing special characters in URLs, query parameters, and form data.
When to Use
- Component: Use when encoding query parameter values (encodeURIComponent)
- Full URI: Use when encoding a complete URL (encodeURI)
- Handling special characters in API requests
- Building URLs with user-provided input