Developer tools
URL Encoder/Decoder
Percent-encode and decode URL components safely.
How it works
- 1Pick Encode or Decode.
- 2Paste your string.
- 3Copy.
Use cases
- Building query strings safely
- Decoding ugly URLs from logs
- Debugging API request shapes
Frequently asked questions
What is the difference between encodeURI and encodeURIComponent?
This tool uses encodeURIComponent, which percent-encodes every reserved character. Use it when embedding a single value inside a URL.
Read the guide
When and why to URL-encode a string
Percent-encoding is straightforward in theory and quietly tricky in practice. Here is what the encoder does and the three real-world traps.