Web Developer Tools · · 4 min read
How to URL Decode Text
Use the URL Decode tool to turn percent-encoded URLs and query strings back into readable text, right in your browser.
To URL decode text, open URL Decode, paste the percent-encoded string into the input, and read the plain text in the output — it updates instantly in your browser, with a single toggle, Treat + as space, for query strings that use + instead of %20.
What URL Decode does
Percent-encoding replaces characters that aren't safe inside a URL — spaces, &, =, ?, and others — with % followed by a hex byte value, so %20 represents a space and %3D represents =. URL Decode reverses that: it reads the percent-encoded sequences and converts them back to the original characters. Toolbench's version has one setting, Treat + as space, because query strings built with traditional form encoding use a literal + to mean space rather than %20, and decoding needs to know whether to treat + that way or leave it alone.
How to URL decode text with Toolbench
- Open URL Decode.
- Paste or type the percent-encoded text into the input panel.
- Read the decoded text in the output — it updates as you type.
- Leave Treat + as space on if the string came from a query string or form submission where
+stands for a space; turn it off if a literal+in the input should stay as+. - Click Copy to copy the result, or use Send to → to pass it straight into another tool.
Treat + as space defaults to on.
A real worked example
With the default (Treat + as space on), this input:
https%3A%2F%2Fexample.com%2F%3Fq%3Dhello%20world
produces:
https://example.com/?q=hello world
Every %XX sequence maps back to its original character — %3A to :, %2F to /, %3F to ?, and %20 to the space in "hello world".
What the Treat + as space toggle changes
The toggle only affects literal + characters in the input; it has no effect on %2B, which is already the percent-encoded form of a literal +. Take this query string:
name=John+Smith&q=C%2B%2B
With Treat + as space on (the default), the + characters become spaces before decoding, giving:
name=John Smith&q=C++
With the toggle off, the + characters are left alone and only the %2B sequences decode, giving:
name=John+Smith&q=C++
Either way, q=C%2B%2B decodes to q=C++ — that's %2B doing its job as an encoded plus sign, regardless of the toggle. The toggle only decides what a raw + in the input means.
Reference: what the setting does
| Setting | Default | Effect |
|---|---|---|
| Treat + as space | On | Converts literal + characters to spaces before decoding %XX sequences |
| Treat + as space (off) | — | Leaves literal + characters as +; only %XX sequences are decoded |
Tips and common mistakes
+only matters as a raw character.%2Balways decodes to a literal+no matter how the toggle is set — the toggle just controls what an unencoded+in the input means.- Turn the toggle off for URLs, not query strings. A full URL's path rarely uses
+for spaces; query strings from HTML forms are the main place it shows up. - Invalid percent sequences produce an error. If the input has a
%that isn't followed by two valid hex digits, decoding fails with "Error: URI malformed" instead of guessing — check for a stray%or a value that got truncated. - Decoding doesn't validate the URL's structure. If you need to check that a URL's host, path, and query are well-formed, use the URL Parser instead.
- Nothing is sent to a server. Decoding happens in your browser as you type.
Related tools
- URL Encode — go the other direction and percent-encode text for use in a URL or query string.
- URL Parser — break a full URL into protocol, host, path, and query parameters.
- Base64 / URL Encode — switch between Base64, URL percent-encoding, and HTML entity encoding in one tool.
- Base64 Decode — decode Base64 text instead of percent-encoded text.
Frequently asked questions
What does the Treat + as space toggle actually control?
It decides whether a literal + character in the input is converted to a space before decoding. It never affects %2B, which is already the percent-encoded form of a literal + and always decodes to +.
Why am I getting "Error: URI malformed"?
The input has a % that isn't followed by two valid hex digits, so it can't be decoded as a percent-encoded byte. Check for a stray % character or a percent-encoded sequence that got cut off.
Should I leave Treat + as space on?
Leave it on if you're decoding a query string or form-submitted value, where + traditionally means space. Turn it off if the text you're decoding legitimately contains + characters that aren't meant to represent spaces.
Does this tool check if the decoded result is a valid URL?
No. It only reverses percent-encoding and, optionally, + for spaces. To check a URL's structure — protocol, host, path, and query — use the URL Parser instead.
Is my text sent to a server?
No. Decoding happens in your browser as you type. Signed-out visitors have nothing saved; if you're signed in, your input syncs privately to your account.
More guides
- How to Beautify and Format JavaScriptUse the JavaScript Beautifier to turn minified or messy JS into clean, indented code with 2-space, 4-space, or tab indentation.
- How to Minify CSS to Shrink Stylesheet File SizeUse the CSS Minifier to strip comments and whitespace from CSS instantly in your browser, with a real before-and-after example.
- How to Beautify and Format CSSUse the CSS Beautifier to turn minified or cramped CSS into clean, indented rules with 2-space, 4-space, or tab indentation.