Encode or decode URL components. Handles special characters safely.
URL encoding (also called percent-encoding) replaces special characters in a URL with a percent sign (%) followed by two hexadecimal digits. This ensures URLs are transmitted correctly.
You should URL encode query parameters, form data, and any text that contains special characters like spaces, ampersands, or non-ASCII characters before including them in a URL.
encodeURI encodes a full URI but preserves characters like : / ? & =. encodeURIComponent encodes individual components more aggressively, converting those characters too. Our tool uses encodeURIComponent for maximum safety.
In URL encoding, spaces are represented as %20 (standard) or + (form encoding). Our Component mode uses %20, which is the RFC 3986 standard and works universally in URLs.
Use Component mode for query parameters and individual values. Use Full URL mode for encoding complete URLs while preserving the URL structure (protocol, host, path separators).