URL Encoder & Decoder

Encode or decode URLs and query parameters for safe transmission.

Learn more about this tool

How to Use

Paste a URL or text string into the input panel. Click Encode to percent-encode a full URL (preserving reserved characters like : and /), orEncode Component to encode individual query parameter values. ClickDecode to reverse percent-encoding back to readable text.

What is URL Encoding?

URL encoding (percent-encoding) converts characters that are not allowed in URLs into a safe format using a % followed by two hexadecimal digits. For example, a space becomes %20 and& becomes %26. This ensures URLs transmit correctly across all browsers and servers.

encodeURI vs encodeURIComponent

encodeURI encodes a complete URL but leaves structural characters (://,/, ?, #) intact. encodeURIComponent encodes every special character and is the right choice for individual query parameter values or path segments.