Component encoding
This tool encodes URL components, not entire URL validation. It is useful for query parameters, path fragments and debugging copied URLs.
Example
The text "hello world?x=1&y=2" becomes "hello%20world%3Fx%3D1%26y%3D2" when encoded as one URL component.
Encode vs decode
Encoding escapes characters that have special meaning in URLs, such as spaces, question marks and ampersands. Decoding reverses that process when the input is valid encoded text.
Common mistakes
Do not encode a full URL when only one query value needs encoding. Encoding the separators in a full URL can make it unusable as a normal link.
Privacy note
The conversion runs locally in the browser. Avoid pasting secrets, access tokens or private URLs into tools unless you understand where the data is processed.
Last reviewed: 2026-05-17