Encode special characters for safe URL transmission, decode percent-encoded strings, and parse URL components.
URL encoding (also called percent-encoding) converts special characters into a format that can be safely transmitted over the internet. Characters like spaces, ampersands, and slashes are replaced with a % followed by their hexadecimal ASCII code — for example, a space becomes %20.
Use encodeURIComponent for encoding individual query parameter values — it encodes nearly all special characters including &, =, and +. Use encodeURI for encoding a full URL while preserving its structure (slashes, colons remain intact).
Everything you need to know about using the URL Encoder/Decoder.