URL Encoder / Decoder
Encode special characters for URL string queries, or decode percent-encoded URLs back to plain variables.
How It Works
- Enter the raw URL or parameter text.
- The tool replaces reserved and non-ASCII characters with percent-encoded hex sequences (%XX) conforming to RFC 3986.
- Supports full URL encoding as well as query parameter encoding.
Primary Use Cases
- Encoding special characters (&, ?, =, #, space) inside HTTP query string parameters.
- Preventing parameter injection and URL parsing corruption in API integrations.
- Decoding percent-encoded URLs captured from server logs.
Common Security Pitfalls
- Encoding an entire URL including the scheme (https://) instead of only encoding individual query parameters.
- Double-encoding strings (%2520 instead of %20), breaking server parameter decoding.
Frequently Asked Questions
- Why do spaces become %20 or + in URLs?
- Standard RFC 3986 percent-encoding uses %20 for spaces, while application/x-www-form-urlencoded form data uses +.
- What characters are considered reserved in URLs?
- Characters like :, /, ?, #, [, ], @, !, $, &, ', (, ), *, +, ,, ;, and = are reserved for syntactic URI separation.
References & Standards