URL Encode/Decode

Encode special characters for URLs or decode percent-encoded URL strings. Essential for web development and API work.

How to Use

  1. Enter or paste your text or URL in the input area
  2. Click Encode to percent-encode special characters, or Decode to convert back
  3. Copy the result to use in your application

Frequently Asked Questions

  • What is URL encoding?

    URL encoding (also called percent-encoding) replaces special characters with a percent sign followed by their hexadecimal value. For example, a space becomes %20.

  • When should I URL encode?

    URL encode when including special characters in URL parameters, query strings, or form data that will be sent via HTTP.

  • What is the difference between encodeURI and encodeURIComponent?

    encodeURI encodes a full URI, preserving characters like :, /, and ?. encodeURIComponent encodes everything except letters, digits, and a few special characters, making it suitable for encoding individual parameter values.

  • Does this handle Unicode characters?

    Yes, Unicode characters are first encoded to UTF-8 bytes, then each byte is percent-encoded.