Encode and decode URLs instantly. Free, fast, and works in your browser.
URL encoding (also called percent encoding) converts characters into a format that can be transmitted over the internet. URLs can only contain ASCII characters, so special characters must be encoded.
Space → %20 or +/ → %2F? → %3F& → %26= → %3D# → %23% → %25encodeURI() encodes special characters but preserves URL structure characters like /, ?, &, =.
encodeURIComponent() encodes everything, including URL structure characters. Use this when encoding a URL parameter value.