Skip to content
WebTricks

URL encoder / decoder

Percent-encode or decode URLs and query parameters. Choose component or full-URI mode. Runs in your browser.

Output
https%3A%2F%2Fexample.com%2Fsearch%3Fq%3Dhello%20world%26lang%3Dru

About this URL encoder

Encode text so it is safe to drop into a URL, or decode a percent-encoded string back to readable text. Pick component mode (escape everything — for a single query value) or full-URI mode (keep the URL structure intact).

When you need it

Any time user input, a search term, a redirect target or non-ASCII text goes into a URL or query string, it must be percent-encoded so characters like &, =, ? and spaces don’t break the link. Decoding reverses it to show the original value.

FAQ

What is the difference between component and full-URI mode?

Component mode escapes reserved characters too, so use it for a single query value. Full-URI mode preserves URL structure characters like slash, colon and question mark, so use it for a whole URL.

Why is a space encoded as %20?

Spaces are not allowed in URLs, so they become %20 via percent-encoding. Some query-string encoders use a plus sign instead; this tool uses the standard %20.