Developer

URL Encoder

Percent-encode text or a URL so spaces, symbols and non-English characters are safe in links and query strings.

Encode as

How to URL encode

  1. Paste the text or URL.
  2. Choose a single value or a whole URL.
  3. Press Encode URL and copy the result.
  • A space becomes %20 (or +), & becomes %26, and é becomes %C3%A9 (UTF-8).
  • To reverse it, use the URL Decoder.

URL Encode: frequently asked questions

What is URL encoding?

URL encoding (percent-encoding) replaces characters that aren't allowed in URLs with % and their hex code. A space becomes %20, & becomes %26 and é becomes %C3%A9.

Should I encode a single value or the whole URL?

Encode a single value (like a search term or query parameter) to escape everything, including & and =. Encode a whole URL to keep its structure (: / ? & = #) working while escaping spaces and other unsafe characters.

Is a space %20 or +?

Both are used. %20 works everywhere in a URL. + means a space only in query strings sent by HTML forms. Tick the + option if your system expects form encoding.

More Developer tools