What this tool does
The URL Component mode uses encodeURIComponent, which will encode delimiters such as &, =, and ?, and is suitable for a single parameter value; the Full URL mode uses encodeURI, which will retain the protocol, path, and query structure delimiters of the URL.
- Chinese, Japanese and emoji will first be converted into percent sign sequences according to UTF-8.
- Component mode is suitable for value, and full URL mode is suitable for the entire address.
- Encoding will not send or open the entered URL.
How to use it
- Enter a parameter value or full URL.
- Choose URL Component or Full URL.
- Click "URL Encoding."
- Copy the percent-encoded result.
Common uses
- Safely splice query parameter values.
- Encode paths that contain spaces or non-ASCII characters.
- Compare the escaping differences of complete URLs versus individual components.
URL Encode Features
Correctly encode Chinese and special characters in URL Component and Full URL modes. It is suitable for daily development, debugging, data sorting and code optimization scenarios. The processing results can be directly viewed, copied or downloaded.
FAQ
When to choose URL Component?
Choose it when encoding individual parameter names or parameter values to avoid & and = being mistaken for query structures.
Will spaces become +?
encodeURIComponent produces %20. Plus is another set of form rules for application/x-www-form-urlencoded.
Will the full URL pattern encode & and =?
Normally not, because encodeURI preserves the delimiting characters used in the URL structure.