Percent-encode text for URLs or decode it back — choose component or full-URL mode. Private and instant.
When you put text into a URL — a search term, a parameter value — characters like spaces, ampersands and question marks have to be percent-encoded so they aren't mistaken for URL structure. Use component mode (encodeURIComponent) for a single value like a query parameter, which escapes &, =, ? and /. Use full URL mode (encodeURI) when you want to encode a whole address while leaving its structural characters intact.