Percent-encode or decode URLs and query strings so special characters are safe in links and HTTP requests. Prevents broken links when spaces or symbols appear in values.
URL encoder
Uses encodeURIComponent and decodeURIComponent for safe web strings.
How to use URL encoder
- Paste a full URL or a query string fragment.
- Choose encode or decode.
- Copy the result into your app, form, or address bar.
Example: A space in a query value becomes %20 when encoded.
Frequently asked questions
- When do I need URL encoding?
- Encode any value that goes into a URL and may contain spaces, ampersands, or other reserved characters, such as search terms or redirect targets.
- What is the difference between encoding a full URL and a value?
- Encoding a single query value is safe to do fully, while encoding an entire URL can break the slashes and colon, so encode the parts that need it.