URL Encoder & Decoder
RFC 3986 & WHATWG compliant percent-encoding suite & deep URL inspector
Input String / Raw URL
0 chars | 0 bytes
Processed Output
0 chars | 0 bytes
Protocol / Scheme
-
Host / Domain
-
Port
Default (80/443)
Pathname
-
Query String (Raw)
-
Fragment / Hash (#)
-
RFC 3986 Standard
Specifies that characters outside the unreserved set (A-Z, a-z, 0-9, -, _, ., ~) must be converted into their UTF-8 byte representation and percent-encoded (e.g. %20 or %F0%9F%9A%80).
encodeURI vs encodeURIComponent
encodeURI preserves protocol delimiters like https://, slashes, and question marks for complete URLs, whereas encodeURIComponent encodes query keys and values to prevent injection breaks.
Base64URL vs Standard Base64
RFC 4648 §5 substitutes + with - and / with _ and removes trailing = padding, creating web-safe strings safe for URLs, OAuth state, and JWT header tokens.