URL Encoder, Decoder & Query String Parser
Encode and decode URLs using RFC 3986 percent-encoding (encodeURI vs encodeURIComponent) and inspect or edit URL query parameters in a structured table.
๐ URL Percent-Encoding (RFC 3986): encodeURI vs. encodeURIComponent & Query Parsing
Uniform Resource Locators (URLs) can only safely transmit a restricted subset of US-ASCII characters over HTTP. Reserved characters (such as ?, &, =, /, #), spaces, and non-ASCII Unicode strings must be percent-encoded into %XX hexadecimal UTF-8 byte sequences. The DevPanda URL Encoder/Decoder lets you switch between component encoding and full-URI encoding while also providing an interactive Query String Inspector that breaks complex tracking URLs into a clean key-value table.
๐ How to Use This Tool
- Choose between Encode mode, Decode mode, or Query String Parser mode.
- Select your encoding strategy: encodeURIComponent (for query parameter values) or encodeURI (for complete URLs).
- Paste your raw string or URL into the input box to view the encoded/decoded output immediately.
- When pasting a full URL with ?key=value&... parameters, inspect the parsed Query Parameter table below to copy or verify individual parameters.
๐ When to Use encodeURIComponent vs. encodeURI
- RFC 3986 Unreserved Characters: Only alphanumeric characters (AโZ, aโz, 0โ9) and four punctuation marks (- _ . ~) are unreserved and never percent-encoded.
- encodeURIComponent (For Parameter Values): Encodes everything except unreserved charactersโincluding /, :, ?, &, =, and +. Always use encodeURIComponent when interpolating user input into a query parameter so an embedded & cannot inject extra URL parameters.
- encodeURI (For Full URLs): Preserves structural URL delimiters (:, /, ?, #, &, =) so a complete web address remains a valid clickable URL while still encoding spaces (%20) and international UTF-8 characters.
โ Frequently Asked Questions (FAQ)
Q. Why are spaces sometimes encoded as + and other times as %20?
RFC 3986 URL path encoding represents a space as %20. However, the HTML form submission format (application/x-www-form-urlencoded) historically encodes spaces in query strings as +. Notice that encodeURIComponent uses %20.
Q. What happens if a URL is double-encoded?
If an already-encoded string like %20 is passed through an encoder a second time, the percent sign itself is encoded as %25, turning %20 into %2520. Running Decode twice in our tool restores the original string.
Q. How are non-English characters (like Korean ํ๊ธ) encoded in URLs?
The character is first converted into its UTF-8 byte sequence (for example, "ํ" is 3 bytes: EC 95 9C in hex), and each byte is prefixed with %, producing %ED%95%9C.