URL Encoder / Decoder
Encode and decode URLs instantly. Supports percent-encoding, form encoding and full URL encoding. See exactly which characters were encoded โ highlighted in real time.
URL encoding explained
URL encoding (percent-encoding) replaces unsafe ASCII characters with a % followed by two hexadecimal digits. For example, a space becomes %20, and an ampersand becomes %26.
Encodes ALL special characters except letters, digits, and - _ . ! ~ * ' ( ). Use this for query string values where you want the entire value treated as data, not URL syntax.
Encodes a complete URL but preserves URL-structural characters like / ? & = # :. Use when encoding an entire URL where these characters are part of the URL structure, not data.
Used in HTML form submissions (application/x-www-form-urlencoded). Spaces become + instead of %20. This is the format of most login forms and search queries.
Passing a value in a query string โ encodeURIComponent. Sharing a full URL โ encodeURI. Submitting a form programmatically โ form encoding. Most developers need encodeURIComponent.