URL Encoder
Percent-encode text using JavaScript encodeURIComponent rules for a URL component.
How to use
- Enter the component value and run encoding.
Capabilities and scope
This targets values such as query parameters or path fragments rather than preserving the structure of a complete URL.
How it works
The result is exactly encodeURIComponent(input).
Example
hello world becomes hello%20world.
Useful for
- Encode a query-parameter value or one URL component
Before you use it
- If you enter a complete URL, structural characters such as :, /, and ? are encoded too.
Frequently asked questions
Do spaces become plus signs?
No. encodeURIComponent encodes a space as %20.