Encode or decode URL components and query strings.
encodeURIComponent escapes every reserved character and is safe for a single query parameter value. encodeURI leaves structural characters like / and : alone, meant for a full URL. This tool uses component encoding — the more common need.
That usually means the input wasn't valid percent-encoded text to begin with — check for stray % characters that aren't followed by two hex digits.