URL Encoder / Decoder

Encode special characters for safe use in URLs, or decode percent-encoded strings back to plain text. Runs entirely in your browser.

Encode or Decode URL

Output

Processed locally. Nothing is sent to any server.

About URL Encoding

URL encoding (percent-encoding) replaces unsafe characters with a % followed by their hexadecimal code. For example, a space becomes %20, and & becomes %26.

  • Required for special characters in query string parameters
  • Characters A-Z, a-z, 0-9, -, _, ., ~ are safe and not encoded
  • Use when passing URLs, email addresses, or text with spaces as API parameters
  • This tool uses encodeURIComponent, which encodes all special characters except: - _ . ! ~ * ' ( )