GoWebTools

URL Encoder

Percent-encode text for safe use in URLs and query strings. Choose between full component encoding and full URI encoding. Free online URL encoder.

Input

Result

The result appears here as you type.

What this tool is for

URLs may only carry a limited set of ASCII characters. Everything else, spaces, ampersands, accented letters, emoji, has to be percent-encoded or the address breaks at the first space. This does that encoding, with the choice between escaping a whole URL or a single parameter value.

How to use it

  1. Paste the text or URL.
  2. Pick the mode: component encoding for a single parameter value, URI encoding to preserve the structure of a full address.
  3. Copy the encoded string.

Frequently asked questions

What is the difference between the two modes?

Component mode escapes reserved characters like & ? = / too, which is what you need for a value going inside a query parameter. URI mode leaves those intact so a complete URL stays a working URL.

Why is a space sometimes %20 and sometimes +?

Percent encoding uses %20. The plus sign comes from HTML form submissions, which use a slightly different rule for the query string. Both are valid in their own context.