Toolvist

URL Encoder & Decoder

Encode or decode URLs and query strings to and from percent-encoding. Free online URL encoder and decoder — see exactly which characters get escaped.

Free URL Encoder & Decoder

The URL Encoder & Decoder converts text to and from percent-encoding (URL encoding). Encode query strings and parameters, or decode them back to readable text.

How to use the URL Encoder

  1. 1 Paste the text or URL you want to encode into the box.
  2. 2 Choose encodeURIComponent for a value going inside a query string, or encodeURI for a whole URL.
  3. 3 The encoded output appears immediately with every unsafe character converted to %XX form.
  4. 4 Switch to decode mode to turn a percent-encoded string back into readable text.

How to Use

Type or paste your text, then click Encode to percent-encode it or Decode to convert it back. Copy the result with one click.

  • Encode spaces and special characters for URLs
  • Decode percent-encoded strings
  • Safe for query parameters and paths

Frequently asked questions

What is the difference between encodeURI and encodeURIComponent?

encodeURI leaves URL structure characters alone, so "://" and "?" survive — use it on a complete URL. encodeURIComponent escapes those too, which is what you want for a single parameter value, otherwise an "&" inside your data would be read as a parameter separator.

Why does a space become %20 in one place and + in another?

Both are valid in different contexts. %20 is correct in a URL path; "+" is the convention for spaces inside form-encoded query strings. This tool uses %20, which is safe everywhere.

Do I need to encode non-English characters?

Yes, for a reliable URL. Non-ASCII characters must be UTF-8 encoded and then percent-escaped, so "é" becomes %C3%A9. Browsers often display the readable form, but the encoded form is what travels on the wire.

Related Developer Tools

Browse all Developer Tools →

You might also need

Tools from other categories that people pair with the URL Encoder:

Browse the full tool directory →