URL Encoder Decoder

Mode
Result
The result will appear here.
0 input chars · 0 output chars

What is URL Encoder Decoder?

URL Encoder Decoder applies percent-encoding to text or decodes it back, using the standard encodeURIComponent rules. Turn spaces into %20 and special characters into their safe form for links and query strings, or decode a messy URL back to readable text. The tool runs entirely in your browser and is free with no signup.

How to use

  1. Paste your text or URL into the input box.
  2. Choose Encode to percent-encode it, or Decode to turn it back into readable text.
  3. The result appears instantly in the result box.
  4. Click Copy result to copy it to your clipboard.

Features

  • Uses the standard encodeURIComponent encoding, so output matches what browsers expect.
  • Encodes spaces as %20 and keeps unreserved characters intact.
  • Decoding shows a clear error when the input is not valid percent-encoded text.
  • Live character counts for both the input and the result.
  • One-click copy and clear buttons.
  • Free, private, and no signup required.

Frequently asked questions

How do I URL-encode text online?

Paste your text into the box above with the Encode mode selected. Spaces and special characters are converted to their percent-encoded form instantly.

How do I decode a URL with %20 and other codes?

Switch to the Decode mode and paste the encoded text. All percent codes are converted back to their original characters.

What is the difference between encodeURI and encodeURIComponent?

This tool uses encodeURIComponent, which encodes more characters including &, =, ? and /. That makes it the right choice for encoding a single value in a query string.

Why does a space become %20?

Spaces are not allowed in URLs, so they are replaced with their percent code %20. Some forms use a plus sign instead, but %20 is the standard encoding.

Is this tool free?

Yes, it is free with no signup and no limits.

Is my text sent to a server?

No. The encoding runs in your browser with JavaScript, so your text never leaves your device.

Related tools