URL Encoder & Decoder — Percent-Encoding Both Ways
Percent-encode a URL or query string so special characters (spaces, ampersands, non-ASCII) travel safely — or decode an already-encoded URL back to human-readable form. Essential when debugging APIs, redirect chains, or malformed links.
Encodes what needs encoding
Reserved characters (space, ?, &, #, /, +, %) and all non-ASCII characters are percent-encoded. Safe characters are left alone so the URL stays readable.
Debugging shared links
Ever seen a URL full of %20 and %2F? Paste it here to see the actual path the user was trying to reach.
Frequently Asked Questions
Difference between encodeURI and encodeURIComponent?
This tool uses encodeURIComponent-style encoding — safe for query values. For a whole URL, some characters (like /) shouldn't be encoded; adjust the input accordingly.
Does it encode Unicode?
Yes — non-ASCII characters become their UTF-8 percent-encoded byte sequence.
Is a URL with special characters unsafe?
Not unsafe, just fragile. Encoding ensures every part of the stack (proxies, redirects, servers) parses it the same way.