URL Encode & Decode

Encode text for safe URL usage or decode percent-encoded URL strings. Handle special characters in web addresses correctly.

How to Use

  1. Enter text or encoded URL
  2. Click Encode or Decode
  3. View the result
  4. Copy and use in URLs

About This Tool


URL encoding (percent-encoding) converts special characters into a format that can safely be included in URLs. Characters like spaces, &, =, and non-ASCII characters must be encoded to avoid breaking URL structure.

When encoding, special characters are replaced with % followed by their hexadecimal value. For example, a space becomes %20, and & becomes %26. This ensures URLs work correctly in browsers and web requests.

Decoding converts these encoded sequences back to their original characters. This is useful for reading URL parameters or debugging web requests where the actual values are obscured by encoding.

Our tool supports both full URL encoding and component encoding. Full encoding preserves URL structure (://) while encoding parameters. Component encoding treats the entire input as a single value to be encoded.

FAQ

What characters need encoding?
Spaces, &, =, ?, #, +, and most non-ASCII characters need encoding when used in URLs.
What's the difference between + and %20 for spaces?
In query strings, + often represents space. In paths, %20 is used. Our tool uses %20 for maximum compatibility.
Can I encode a full URL?
For full URLs, only encode the parameter values, not the entire URL structure including :// and &.
Does it handle Unicode?
Yes, Unicode characters are properly encoded using UTF-8 byte sequences.
Why is my encoded URL still not working?
Make sure you're only encoding parameter values, not the entire URL. The :, /, ?, and & delimiters shouldn't be encoded.