All tools

URL Encode & Decode

Percent-encode or decode strings with encodeURI or encodeURIComponent semantics.

Direction
Mode
Input
Output

Paste input to see live output.

What is URL Encoding?

URL encoding (percent-encoding) represents characters in a URL using ASCII so reserved or non-ASCII characters do not break parsing. Spaces become %20, and many symbols become a % followed by two hex digits.

How to use it

Paste text in the input area, choose Encode or Decode, and pick Full URL or Component mode. The output updates as you type. Copy the result or clear both fields anytime.

encodeURI vs encodeURIComponent

encodeURI is meant for entire URIs: it encodes characters that are invalid in a URI but leaves delimiters like ?, #, /, and : untouched so the structure of the URL stays intact. encodeURIComponent encodes almost everything and is for a single query parameter value or path segment where characters like & and = must not stay literal. Use Full URL mode when encoding whole addresses; use Component mode for values you slot into query strings or form fields.