The Otter family · try our other free tools: PDFOtter ↗ PixOtter ↗ Numbiqo UK money calculators ↗

URL Encoder

Percent-encode or decode text for safe use in URLs.

Read the full guide: How to URL-Encode Text (Percent Encoding Explained) →

Percent-encode or decode text for safe use in links with this free URL encoder / decoder. Convert spaces and special characters into URL-safe form (or back), so your query strings, parameters and shared links always work.

How to use the url encoder

  1. Paste your text or URL into the box.
  2. Click Encode to make it URL-safe, or Decode to read it back.
  3. Copy the result.

Why use ToolOtter's URL Encoder?

  • Encode & decode URLs
  • Handles special characters
  • One-click copy
  • Private, no uploads

Worked example

You want to put fish & chips £5 into a link's search parameter. Encode it and you get fish%20%26%20chips%20%C2%A35: spaces become %20, the ampersand becomes %26 so it is not read as the start of a new parameter, and the £ sign becomes the two UTF-8 bytes %C2%A3.

Paste an encoded string and click Decode to read it, which is handy for long tracking links.

When people use it

  • Building links with search terms or parameters
  • Reading tracking links and redirect URLs
  • Debugging forms and APIs
  • Encoding text for mailto: links with a subject line

Good to know

The tool encodes text as a URL component, so it also encodes /, ? and &. That is right for a value inside a link, but if you encode a whole web address it will no longer work as a link. Encode only the part that goes after =.

URL Encoder, frequently asked questions

How do I URL-encode text?

Paste your text and click Encode, spaces become %20 and other special characters are escaped so the string is safe in a URL.

When do I need URL encoding?

Whenever you put text with spaces or symbols into a link or query parameter, so the URL stays valid.

Can it decode an encoded URL?

Yes. Paste the encoded string and click Decode to get the readable text back.

Is my data uploaded?

No. It all runs locally in your browser.

Should spaces be %20 or +?

Both appear. %20 works everywhere in a URL; + means a space only in form-style query strings.

Why is the pound sign %C2%A3?

URLs use UTF-8, and £ is stored as two bytes, C2 and A3.

Can I encode a whole URL?

Encode only the values, not the whole address, otherwise characters like : and / are encoded too.