URL Encoder

Percent-encode text, query strings, and paths for URLs

Encode text so it can be safely used in a URL query string or path - with options for form-style "+" spaces and encoding a list line by line.
Try an example:

Output will appear here...

About URL Encoder

How it works

  1. Each character is checked against the set of characters allowed unencoded in URLs (letters, digits and - _ . ~).
  2. Everything else is converted to its UTF-8 bytes, each written as % plus two hex digits: a space becomes %20, é becomes %C3%A9.
  3. "Full URL" mode leaves URL structure characters (: / ? # & =) alone so a whole address stays valid.

What you need

  • The text, value or URL you want to put in a link.

Tips

  • Encode each query parameter value separately, then join them with & - encoding the whole query string would also encode the & and = separators.

Runs in your browser. Everything happens in your browser - the text you enter is never uploaded.

Frequently asked questions

What is the difference between the two modes?+

"Query value" (encodeURIComponent) encodes everything except letters, digits and - _ . ! ~ * ' ( ). "Full URL" (encodeURI) additionally keeps : / ? # [ ] @ & = + $ , so the URL structure is preserved.