URL Encoder & Decoder
Encode a single component or a whole URL, decode percent-escapes, and edit query parameters. Invalid % sequences are reported instead of being guessed.
Component mode uses encodeURIComponent. Full URL mode uses encodeURI and keeps characters such as : / ? #. The query editor encodes spaces as +.
Result
a%20b%2F%C3%A7
Query editor
Invalid % sequences are reported. Unicode is encoded as UTF-8 bytes.
How to use it
- Use component mode for one value, such as a query parameter. Use full URL mode when slashes and the scheme should stay intact.
- Decode only text whose % sequences are complete hex pairs.
- Open the query editor to change keys and values, then rebuild the URL.
Common mistakes
- encodeURIComponent encodes /, so it will break a full URL if you use it on the whole string.
- A trailing % or %ZZ is invalid and is not silently dropped.
- The query editor uses URLSearchParams, which encodes spaces as +.
Examples
Component
a b/ç encodeURIComponent → a%20b%2F%C3%A7
Full URL
https://example.com/a b encodeURI leaves : and / in place and encodes the space.
Frequently asked questions
Processing stays in this browser tab. What you paste is not uploaded, and this tool does not write it to local storage.