URL Encode & Decode

encodeURIComponent / decodeURIComponent — ideal for query parameters and non-ASCII text.

Content is processed in your browser and never uploaded
Output
Hello%20world%20%26%20test

Settings

Content is processed in your browser and never uploaded

Related tools

Frequently asked questions

Is my content uploaded?
No. Encoding and decoding happen locally.
How is this different from encodeURI?
encodeURIComponent is the usual choice for query parameters; a full URL is a different case.
What about non-ASCII parameter values?
Encode the parameter values first, then append them to the URL.