How it works
Uses encodeURIComponent to percent-encode one URL component, or decodeURIComponent to restore it.
Encode text for a URL or decode percent-encoded text.
tea & coffee
tea%20%26%20coffee
Uses encodeURIComponent to percent-encode one URL component, or decodeURIComponent to restore it.
Encode spaces, slashes, and non-ASCII characters in a query value before adding it to a URL.
Malformed percent escapes or invalid UTF-8 fail during decoding. Treat a component separately from a full URL.
Usually not. Encode individual path or query components as needed.
The input area shows the accepted format and available controls for this tool.
No. Your input is handled in the browser you are using. Privacy