URL Encoding Methodology

URL encoding (percent-encoding) replaces unsafe ASCII characters with a "%" followed by two hexadecimal digits. Our tool implements two primary standards:

  • encodeURIComponent: Encodes all characters except A-Z a-z 0-9 - _ . ! ~ * ' ( ). Crucial for data in query strings.
  • encodeURI: Preserves characters with special meaning in a full URL (like http://, ?, #, &).