Query values
Encoding prevents spaces, ampersands and symbols from breaking query strings or request URLs.
Browser-based developer tools
Encode and decode URL components, query values and percent-encoded text locally in your browser.
Reference notes
Encoding prevents spaces, ampersands and symbols from breaking query strings or request URLs.
Decoded output helps inspect copied links, redirect URLs and API callback parameters.
Formalint uses component encoding, which is appropriate for query values and path fragments.
Decode component preserves a literal plus sign. Decode form value treats plus as a space before percent-decoding, for individual values from application/x-www-form-urlencoded data. Both actions decode exactly one layer and reject malformed percent escapes or invalid UTF-8 byte sequences.
| Input | Decode component | Decode form value |
|---|---|---|
C++ | C++ | C followed by two spaces |
C%2B%2B | C++ | C++ |
a+b%20c | a+b c | a b c |
%252F | %2F | %2F |
%C3%A9 | é | é |
%E9 | Error: invalid UTF-8 | Error: invalid UTF-8 |
%2 | Error: incomplete escape | Error: incomplete escape |
For example, the raw value a+b becomes a%2Bb with Encode and returns unchanged with Decode component. A space becomes %20. Empty input is valid. Error states and input edits clear the previous result; Copy requires a successful operation on the current input.
Decoding does not validate a redirect destination or make text safe for HTML. The tool displays results as text and does not navigate to them. For related payload issues, use the Base64 text codec or inspect decoded JSON in the workspace.
Implementation reference: decodeURIComponent and form-value preparation. This tool uses strict decoding; a tolerant query parser can handle malformed bytes differently.
Frequently asked
Percent-encoding replaces reserved and unsafe characters with a % followed by the character's hex code. Query strings sometimes use + for spaces instead, depending on the encoding context, which this tool distinguishes between.
Reserved characters like &, =, ?, #, and space, along with any non-ASCII characters, need encoding when they appear inside a query parameter value to avoid being misread as part of the URL structure.
Encoding an already-encoded string turns a % into %25, corrupting the value. This is a common bug when a value passes through more than one layer of URL building without checking whether it was already encoded.