URL Encode & Decode Tool
Encode and decode URLs, query parameters, and UTF-8 strings in real time with encodeURIComponent / encodeURI modes, %20 vs + space handling, and an automatic Query String inspector—100% locally in your browser.
| # | Key | Decoded Value | Action |
|---|
⚡ Quick Answer
DayToolHub URL Encode & Decode runs 100% locally in your browser using standard RFC 3986 percent-encoding (encodeURIComponent & encodeURI) with %20 / + space toggling and an instant Query String table parser—your data is never saved, logged, or sent to any server.
How to Use URL Encode & Decode
- Choose either "URL Encode" or "URL Decode" mode.
- Select encodeURIComponent (recommended for query values) or encodeURI (preserves full URL structure), and toggle %20 vs + space handling.
- Type or paste any text or URL to view the instant encoded/decoded output along with character and UTF-8 byte counts.
- When your input includes query parameters (?key=value), inspect and copy every decoded key/value pair directly from the Query String table below.
encodeURIComponent vs. encodeURI: Which One Should You Use?
Both functions apply RFC 3986 UTF-8 percent-encoding, but they preserve different sets of characters depending on whether you are encoding a single parameter value or an entire URL:
encodeURIComponent (default for parameter values): Preserves only A-Z a-z 0-9 - _ . ! ~ * ' ( ) and encodes delimiters like : / ? & = # +. Always use this when embedding a value or nested URL inside a query parameter.
encodeURI (for complete URLs): Keeps structural URL characters ; , / ? : @ & = + $ # intact while encoding spaces, Unicode characters, and unsafe symbols.
Common Reserved Characters & UTF-8 Percent-Encoding Reference
| Character | Encoded Form | Role in URLs |
|---|---|---|
| Space | %20 or + | RFC 3986 paths & standard URLs use %20; HTML form data (x-www-form-urlencoded) often uses + |
& | %26 | Separates query parameters; literal ampersands inside values must be encoded |
= | %3D | Separates parameter keys and values |
? | %3F | Marks the start of the query string |
# | %23 | Marks the client-side URL fragment (not sent to servers) |
/ | %2F | Path segment separator |
: | %3A | Scheme and port delimiter |
+ | %2B | Must be encoded as %2B when a literal plus sign is needed in form-encoded queries |
% | %25 | Escape prefix itself; literal percent signs must be encoded to avoid malformed sequences |
@ | %40 | User-info and email delimiter |
🚀 (UTF-8) | %F0%9F%9A%80 | Multi-byte UTF-8 characters are encoded byte-by-byte as uppercase hex pairs |
3 Practical Tips to Avoid URL Encoding Bugs
- Watch out for double encoding: Encoding an already encoded string turns
%20into%2520. Use the Swap button and Query String parser to verify your string is encoded exactly once. - Keep path and query space rules separate: A
+in a URL path stays a literal plus sign, whereas in form-encoded query strings it usually decodes to a space. - Never paste sensitive URLs into server-backed tools: Because DayToolHub runs 100% locally in your browser with zero backend calls, you can safely inspect internal URLs and query tokens even offline.