URL Encoder / Decoder
Percent-encode special characters and decode encoded URLs in one click
Encode Component â encodes ALL special characters including /, ?, & (use for query params)
Encode Full URL â preserves URL structure, only encodes spaces and unsafe characters
About URL Encoding & Decoding
URL encoding (also known as percent-encoding) converts characters that aren't allowed or safe in a URL into a format that can be transmitted. Special characters like spaces, &, =, and # are replaced with a % followed by their hexadecimal code.
Why URL Encoding is Important
URLs can only contain a limited set of characters defined by the RFC 3986 standard. Characters like spaces, ampersands, and non-ASCII characters (e.g. Chinese, Arabic) must be encoded to be included safely in a URL. Failing to encode these characters can break links, cause 400 errors, or lead to security vulnerabilities like open redirects.
Encode Component vs Encode URI
- encodeURIComponent â Encodes all characters except:
A-Z a-z 0-9 - _ . ! ~ * ' ( ). Use this for encoding individual query parameters or path segments. - encodeURI â Encodes all characters except those that are part of valid URL syntax. Use this for encoding a complete URL while preserving its structure.
Common Use Cases
- Encoding query string parameters with special characters
- Building API request URLs programmatically
- Decoding URLs from server logs or analytics dashboards
- Reading percent-encoded redirect URLs
- Handling non-Latin characters in URLs
How to Use
Paste your URL or text into the input box. Click Encode Component to percent-encode every special character â ideal for query parameters. Click Encode Full URL to encode a complete URL while keeping its structure intact. Click Decode to convert a percent-encoded URL back to a readable format.