URL Encoder / Decoder

Percent-encode any string for use in URLs — or decode one back to readable text.

Output

Component vs Full URI

Component (encodeURIComponent) escapes characters that have a special meaning in URLs: & = ? / # +. Use this when you're encoding a single query parameter value.

Full URI (encodeURI) leaves URL-structure characters alone. Use this when you have a full URL and just want to escape spaces and Unicode.

Common quirks

  • Plus signs in query strings — historically, + in a query string is decoded as a space (form-encoding convention). Our decoder honors this.
  • Already-encoded input — double-encoding is silent and ugly. %2520 means "encoded percent-2-0" and decodes to "%20", not a space. If you re-encode an already-encoded string, you get this.