Encode or decode URLs and query strings instantly. Free, private, no signup.
Quick Examples
Encodes everything except: A-Z a-z 0-9 - _ . ! ~ * ' ( )
Use for: query parameter values, path segments, individual URL components.
Encodes everything except URL structure characters: ; , / ? : @ & = + $ #
Use for: encoding a complete URL while preserving its structure.
| Character | Encoded | Common Use |
|---|---|---|
| Space | %20 | Queries, paths |
| + | %2B | Math operators in params |
| / | %2F | Path separator in params |
| ? | %3F | Query marker in params |
| & | %26 | Param separator in values |
| = | %3D | Key=value in params |
| # | %23 | Fragment identifier |
| @ | %40 | Email in URLs |
encodeURIComponent when encoding a value that will be embedded inside a URL (like a query parameter value or path segment). It encodes &, =, ?, / and other URL structure characters.
encodeURI when you have a complete URL that you want to sanitize while keeping its structure intact. It leaves URL delimiters (://, ?, &, =) unencoded.
encodeURIComponent — it's safer for embedding values.
%20. Used in URLs generally.
+. Used in HTML form submissions and some query strings.
+ as space in form data contexts but not in path segments. This is why you sometimes see ?q=hello+world (form) vs ?q=hello%20world (RFC 3986).