Encode special characters for URLs or decode percent-encoded strings instantly.
URL encoding (also called percent-encoding) replaces unsafe characters with a % followed by two hex digits. For example, a space becomes %20, and & becomes %26.
encodeURI encodes a full URL but preserves characters like :, /, ?, #, and &.
encodeURIComponent encodes everything except A-Z a-z 0-9 - _ . ~ ! * ' ( ) — use this for query parameter values.
Use the DevTools API for programmatic URL encoding: