URL Encode/Decoder
Tool Description
URL Encoding (Also known as percent-encoding) is a mechanism to convert special characters into a universally acceptable format within URLs. This encoding is crucial when passing parameters in URLs that contain spaces, Chinese characters, or reserved URL characters (such as `&`, `?`).
- Encode (Encode): Convert plain text strings into URL-encoded strings compliant with URL standards.
- Decode (Decode): Convert an already encoded URL string back to its original form.
- Component Mode (encodeURIComponent): This is the most commonly used mode, encoding almost all special characters. Recommended for encoding keys or values in URL query parameters (e.g., `?q=Hello` where 'Hello' is encoded).
- URI Mode (encodeURI): This mode does not encode reserved characters with special meaning in URLs (
; / ? : @ & = + $ #
)for encoding. It is suitable for scenarios where a complete URI containing protocol and host needs to be encoded while preserving its structural integrity.