Scope:
Plain Text
Encoded Output
Quick encode:
Encode vs Full URI
Component uses encodeURIComponent — encodes everything except
A–Z a–z 0–9 - _ . ! ~ * ' ( ).
Use this for individual query string values.
Full URI uses encodeURI — preserves
: / ? # [ ] @ ! $ & ' ( ) * + , ; = so the URL structure stays intact.
Use this when encoding a complete URL.