What is URL encoding?
URLs reserve characters such as question marks, ampersands, slashes, hashes, and equals signs for structure. Percent-encoding represents text as UTF-8 bytes written with percent sequences so spaces, Unicode, punctuation, and reserved characters can safely occupy a URL component.
URL components versus complete URLs
This tool uses component encoding, the browser behavior behind encodeURIComponent. It is appropriate for a query value, path segment, or fragment value. Encoding an entire URL this way also encodes its separators.
Common uses
Encode search terms, redirect targets, filenames, campaign values, API parameters, or text embedded in a query string.
Why decoding can fail
Every percent sign must be followed by two hexadecimal digits, and the resulting bytes must form valid UTF-8.