Developer tool

URL encoder

Percent-encode text for URLs, or decode it back.

URL encoder Runs on your device
  • Runs in your browser — your text is never sent anywhere
  • No sign-up, no quotas, free to use as often as you like

How it works

URLs may contain only a limited set of characters. Everything else — spaces, ampersands, accented letters, anything non-ASCII — must be percent-encoded, or the URL breaks in ways that are irritating to debug.

Full URI versus component

Encoding a whole URI leaves structural characters such as the colon, slash and question mark alone, because they are doing a job. Encoding a component escapes those too, which is what a value inside a query parameter needs.

The usual bug

Encoding a whole URL when you meant to encode one parameter leaves ampersands intact, so a value containing one silently splits into two parameters. For values in a query string, use the component option.

FAQ

URL encoder — questions

What is the difference between the two encode options?

Encode leaves URL structure characters alone; encode as a component escapes them too, for values going inside a query string.

Why does decoding sometimes fail?

A stray percent sign that is not part of a valid escape sequence makes the text undecodable. The tool reports that rather than returning something wrong.

Is my text sent anywhere?

No, encoding happens in the page.