1. Prepare
Choose encode or decode for one URL component. Example: A&B 100% encodes as A%26B%20100%25.
Practical usage guide
Encode or decode a URI component with JavaScript URI-component semantics for API and integration text.
Choose encode or decode for one URL component. Example: A&B 100% encodes as A%26B%20100%25.
Compare ampersands, percent signs and spaces with the original. Decoding reverses percent escapes; a plus sign does not automatically become a space.
Use this for components, not indiscriminately for a complete URL. Fix malformed percent escapes and avoid double encoding values already encoded by the caller.