URL Encode / Decode
Percent-encode or decode URL strings online. Supports query params and full URLs.
About URL Encode / Decode
Percent-encode any text or URL string so it can be safely included in a URL, or decode a percent-encoded string back to plain text. Handles spaces (%20), special characters, and Unicode. Useful for constructing API query strings, debugging redirect URLs, and reading encoded log output.
All processing happens entirely in your browser using modern web APIs. Nothing is uploaded to our servers — your data stays local and private. Free to use forever.
Common use cases
- Encoding query parameter values before appending to a URL
- Decoding encoded redirect_uri parameters in OAuth flows
- Reading percent-encoded values from server logs or error messages
- Constructing webhook URLs with special characters in parameters
- Debugging double-encoded URLs that appear garbled in browsers
How it works
Uses encodeURIComponent() for encoding (which encodes everything except letters, digits, -, _, ., !, ~, *, ', (, )) and decodeURIComponent() for decoding. This is the correct approach for encoding individual query parameter values, as opposed to encodeURI() which skips characters that are valid in full URLs.