URL Encode Text

Percent-encode text for use in URLs, or decode it.

Input

Output

Words 4Characters 45Without spaces 42Sentences 1Lines 1Paragraphs 1Reading time < 1 min

About URL Encode

Characters like spaces, &, ? and # have special meaning in a URL, so values placed in a link need to be percent-encoded. A space becomes %20, & becomes %26 and é becomes %C3%A9.

Choose Everything (query values) to encode a single parameter value safely, or Keep URL structure to tidy a full address while leaving :, /, ? and & alone. Encoding is done by your browser; nothing is sent to us.

How to use it

  1. Paste the text or URL you want to encode.
  2. Keep Mode on Encode and choose Everything or Keep URL structure.
  3. Copy the encoded result from the right, or download it as a .txt file.

Frequently asked questions

What is the difference between the two encode options?

Everything works like encodeURIComponent and escapes reserved characters such as / ? & =, which is what you want for a single query value. Keep URL structure works like encodeURI and leaves those characters in place.

Are spaces encoded as %20 or +?

As %20, which is valid everywhere in a URL. The + form is only understood in query strings.

Does it handle non-English characters?

Yes. They are encoded as UTF-8 bytes, so ü becomes %C3%BC.

Related tools