URL Encoder / Decoder
Free online URL encoder and decoder. Percent-encode special characters for safe use in URLs or decode encoded query strings instantly. Runs 100% in your browser.
What is URL encoding (percent-encoding)?
URL encoding replaces characters that are unsafe in URLs with a percent sign followed by their byte value in hex — a space becomes %20, an ampersand becomes %26. It exists because URLs only permit a limited set of characters, and symbols like ?, & and = have structural meanings.
The most common use is putting user input into query strings: if a search term containing & is not encoded, the URL breaks apart at that character. JavaScript's encodeURIComponent — which powers this tool — handles this correctly.
How to use
- 01Select Encode to percent-encode a URL, or Decode to decode one.
- 02Paste your URL or encoded string into the input box.
- 03Click Encode URL / Decode URL to convert.
- 04Copy the output with the Copy button.
Frequently asked questions
- What is URL encoding (percent encoding)?
- URL encoding replaces special characters with a % sign followed by two hex digits. For example, a space becomes %20. This makes URLs safe to transmit over the internet.
- When do I need to URL-encode a string?
- Any time you include user input in a URL — for example, in query parameters — you should percent-encode it to avoid breaking the URL structure.
- Is my data sent to a server?
- No. The encoding and decoding happens entirely in your browser using the built-in encodeURIComponent and decodeURIComponent functions.