URL Encode / Decode

Percent-encode text for URLs, or decode %20s back to readable text.

Quick answer: URL Encode and Decode text instantly. Convert spaces to %20 and properly escape URL strings safely in your browser. Free percent-encoding tool.

processed locally

Make any text safe for URLs (spaces → %20, & → %26) or decode an encoded URL back into readable form.

How it works

  1. Select your operation: Encode (to make text URL-safe) or Decode.
  2. Paste your text or URL string into the box.
  3. Copy the safely percent-encoded (or decoded) string.

Frequently asked questions

What is the difference between encodeURI and encodeURIComponent?

encodeURI preserves structural URL characters like /, ?, and &. encodeURIComponent aggressively encodes those too, making it the correct choice for URL query parameters.

Why did my URL decoding fail?

A stray % symbol not followed by two valid hex digits constitutes a malformed sequence. You must find and fix the broken sequence in your string.

Should a space be encoded as %20 or a plus (+)?

%20 is the modern web standard. The + symbol means space only inside strictly form-encoded query strings.

More in Developer Tools