URL Encoder/Decoder

Encode or decode URLs and URL components

URL Transformation
Protocol: -
Hostname: -
Path: -
Query: -
Hash: -
Encoded Path: -
Encoded Query: -
Encoded Hash: -
About URL Encoding

URL encoding converts characters into a format that can be transmitted over the Internet:

  • Reserved characters like ?, =, & are encoded
  • Spaces become %20 or +
  • Non-ASCII characters are encoded using UTF-8
  • encodeURI() encodes full URLs but leaves ;,/?:@&=+$# intact
  • encodeURIComponent() encodes everything except -_.!~*'()
Tip: Use encodeURIComponent() for query string parameters, and encodeURI() when encoding complete URLs that you want to remain functional.