URL Encoder / Decoder

Free online URL encoder and decoder — percent-encode URLs and query string components or decode them back, with encodeURIComponent and encodeURI modes.

Mode
  1. Choose Encode or Decode tab.
  2. Select the mode: Component for individual values, Full URL to encode a complete URL while preserving structure.
  3. Paste your input and click the button.

FAQ

What is the difference between encodeURIComponent and encodeURI?

encodeURIComponent encodes all special characters including /, ?, #, =, &. Use it for individual query parameter values. encodeURI preserves URL structure characters (/, :, ?, #, etc.) and is suited for encoding a full URL.

When should I encode a URL?

Encode URLs when they contain spaces, non-ASCII characters, or special characters that have meaning in URLs. For example, a search query "hello world" should be encoded as "hello%20world".

What characters are NOT encoded by encodeURIComponent?

Letters, digits, and -_.!~*'() are not encoded. Everything else, including /, ?, &, =, +, and spaces, is percent-encoded.