URL Encode / Decode
Encode or decode URLs and query string parameters.
What Is URL Encoding?
URLs can only safely contain a limited set of characters. Spaces, symbols, and non-English characters must be "percent-encoded" into a safe format (e.g. a space becomes %20) before they can be reliably used in a URL or query string. This tool encodes text into this safe format, or decodes an encoded URL back into readable text.
How to Use This URL Encoder
- Paste a URL or text into the input box.
- Click "Encode" to convert special characters into percent-encoded format, or "Decode" to reverse it.
- Click "Copy Output" to copy the result.
Common Uses for URL Encoding
Building Query Strings
When constructing a URL with a search query or parameter that contains spaces or special characters, encoding ensures the URL works correctly across all browsers and servers.
API Requests
Many APIs require parameters to be properly URL-encoded, especially when passing user-generated text like search terms or free-form input.
Sharing Links with Special Characters
URLs containing accented letters, symbols, or non-Latin scripts need encoding to display and function correctly when shared or clicked.
Frequently Asked Questions
What's the difference between encodeURIComponent and encodeURI?
This tool uses component-level encoding, suitable for individual query parameter values. Encoding a full URL (including the protocol and domain) requires a different approach that leaves those parts untouched.
Is my text sent to your server?
No, encoding and decoding happen entirely in your browser.