π URL Encoder / Decoder
Encode strings for safe use in URLs (percent-encoding), or decode percent-encoded URLs back to human-readable text.
Advertisement
Paste a full URL with query parameters to parse them into a readable table.
Advertisement
Advertisement
URL Encoding Explained
URL encoding (also called percent-encoding) converts characters that are not allowed in a URL into a format that can be safely transmitted. Each character is replaced by a percent sign (%) followed by two hexadecimal digits.
When to Use URL Encoding
- Query string parameters containing special characters
- Form data sent via GET requests
- Passing URLs as parameters inside other URLs
- API request building with user-provided input
Encode vs Encode Component
encodeURI encodes a full URL, preserving characters like : / ? # = &. encodeURIComponent encodes everything including those characters β ideal for encoding individual query parameter values.