URL Encoder / Decoder

Encode or decode URL strings. Convert special characters to percent-encoded format and back.

Encoded result will appear here
Component vs Full URI: encodeURIComponent encodes all special characters including / ? & =. encodeURI preserves URL structure characters.

About URL Encoding

URL encoding (percent-encoding) replaces unsafe characters with a % followed by two hex digits. This ensures URLs are transmitted correctly over the internet.

Common Encodings

  • space becomes %20 (or + in form data)
  • & becomes %26
  • = becomes %3D
  • ? becomes %3F
  • # becomes %23