Skip to main content
Yoryantra
← Back to Tools

URL Query Encoder Decoder

Decode query components or build percent-encoded parameters with explicit form-style space handling.

Choose a Query String Task

Paste query text with or without a leading question mark. Use Parse Full URL when the input is a complete URL.

Options

Query encoding uses percent encoding. In form-style query strings, plus signs are often read as spaces.

Output

URL query output will appear here.
Query parsing and encoding happen in this browser tab. Yoryantra does not send the pasted URL, query string, or parameter values to its server.

A query string is a sequence, not a JavaScript object

Repeated keys, empty values, ordering, and even an empty key can carry meaning to an application. The result therefore keeps parameters as ordered pairs instead of collapsing them into one object where duplicate names would be lost.

A full URL can be pasted to isolate its query component, or plain key/value rows can be encoded without touching the path or fragment.

Percent encoding and form encoding are not identical

Normal URI component encoding represents a space as %20. The application/x-www-form-urlencoded algorithm uses + for spaces and also applies a slightly different percent-encode set. The “plus” option follows that form-style component behavior rather than merely replacing %20.

Reference: WHATWG URL Standard — form-urlencoded.

When a plus sign must remain a plus sign

In form-style data, a raw + commonly represents a space; a literal plus is normally encoded as %2B. In other query conventions, a server may treat + literally. Turn off plus-as-space decoding when examining a protocol that does not use form semantics.

Malformed and double-encoded input

A broken percent escape such as %E0%A4 is rejected rather than quietly returned as if it decoded successfully. %25 is not automatically wrong—it is the encoding of a literal percent sign—but a dense sequence of %25 values is worth checking when debugging accidental double encoding.

Decoding a query reveals data; it does not validate whether redirect targets, callback URLs, tokens, or tracking values are trustworthy. Treat security-sensitive parameters according to the application that consumes them.

Empty values and meaningful whitespace

An empty value (flag=) is different from a value containing spaces. The “skip empty values” option removes only truly empty strings; it does not trim whitespace and silently change the source data.