# URL Encode / Decode
encodeURIComponent · decodeURIComponent · auto-detect
Encode or decode URL strings using JavaScript's encodeURIComponent / decodeURIComponent. Auto-detect mode figures out which direction to convert.
INPUT
OUTPUT
FAQ
What is URL encoding?
URL encoding (percent-encoding) replaces special characters with a % followed by two hex digits. For example, spaces become %20. This ensures URLs transmit safely over HTTP.
What does auto-detect do?
Auto mode checks if the input contains percent-encoded sequences (like %20 or %3D). If found, it decodes; otherwise it encodes.