URL Encode / Decode
Encode and decode URL parameters and special characters instantly. Supports full and component encoding. No data leaves your device.
Encoding Mode
Examples of use
- Encode query parameters before constructing a URL
- Decode a URL-encoded string from an API response
- Sanitize user input for use in URL paths
When to use this tool?
- When building URLs with dynamic query parameters
- When decoding URL-encoded strings from API responses or logs
- When sanitizing user input that will be used in URLs
- When debugging URL encoding/decoding issues
Frequently asked questions
- What is URL encoding?
- URL encoding (percent-encoding) replaces unsafe characters with a % followed by two hexadecimal digits. For example, a space becomes %20.
- What is the difference between Full and Component encoding?
- Full encoding (encodeURI) preserves path separators like / and :. Component encoding (encodeURIComponent) encodes everything except letters, digits, and _ . - ~.
- When should I use URL encoding?
- Use it when passing data in URL query strings, especially for values containing spaces, special characters, or non-ASCII text.