Converter

URL Encode / Decode

Percent-encode text so it's safe to drop into a URL, query string, or form body — or decode an encoded URL back to readable text. Runs entirely in your browser.

plain text
encoded
// component mode escapes & = ? for query values; full url keeps them

About URL Encode / Decode

URLs may only contain a limited set of characters, so spaces, ampersands, and non-ASCII text must be percent-encoded (a space becomes %20) to travel safely in a link, query string, or form body. This tool encodes and decodes both ways, with a choice between encoding a whole URL or a single component like a query-string value.

Frequently asked questions

What's the difference between the two encode modes?+

Component mode (encodeURIComponent) escapes reserved characters like & and = so a value is safe inside a query parameter. Full-URL mode leaves those structural characters intact.

Why is a space sometimes + and sometimes %20?+

In query strings using the form-encoding style, spaces become +. In path segments and standard percent-encoding they become %20. This tool uses %20; decode handles both.

Is my text uploaded?+

No. Encoding and decoding run locally in your browser.

Related tools