Make any text safe for URLs (spaces → %20, & → %26) or decode an encoded URL back into readable form.
How it works
- Select your operation: Encode (to make text URL-safe) or Decode.
- Paste your text or URL string into the box.
- 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.