Skip to main content

URL Decoder Tool

Unescape percent-encoded URLs and query strings back into readable UTF-8 text, inspect and edit key-value parameters visually, and diagnose malformed or double-encoded sequences locally in your browser.

URL Decoder Tool — Interactive Browser WorkspaceUnescape percent-encoded URLs and query strings back into readable UTF-8 text, inspect and edit key-value parameters visually, and diagnose malformed or double-encoded sequences locally in your browser.
100% Client-Side • Zero Server Upload
Sample Input / Parameters — Standard Space Decoding
Hello%20World%21
Ready locally via WebAssembly & JavaScript
Expected Output / Live Result
Hello World!
100% Client-Side • Zero Server Upload

Server access logs, OAuth redirect callbacks, analytics beacons, and REST query parameters routinely arrive packed with dense strings of %22, %7B, %252F, and %F0%9F%9A%80. Reading or debugging those payloads by eye is error-prone, especially when multiple middleware layers have encoded the same parameter more than once. This decoder unwraps percent-encoded strings directly inside your browser, reconstructing UTF-8 text and splitting query parameters into an editable table without making outbound requests or exposing session links to external infrastructure.

How Percent-Decoding Reconstructs UTF-8 Byte Streams

Percent-decoding is a two-stage pipeline rather than a naive character-by-character lookup:

  1. Hexadecimal Octet Extraction: The parser scans sequentially for % markers followed by two case-insensitive hexadecimal nibbles ([0-9A-Fa-f]{2}). Each valid triplet converts to a single 8-bit byte (0x00–0xFF).
  2. UTF-8 Code Point Reassembly: Adjacent decoded bytes are validated against RFC 3629 UTF-8 bit patterns (0xxxxxxx for 1-byte ASCII, 110xxxxx 10xxxxxx for 2-byte characters, up to 4 bytes for supplementary Unicode planes). For instance, %F0%9F%9A%80 yields bytes F0 9F 9A 80, which reassemble into U+1F680 (🚀).

Choosing between decodeURIComponent() and decodeURI() changes which valid ASCII bytes are actually unescaped. decodeURI() deliberately refuses to decode the eleven RFC 3986 reserved characters (%3B, %2F, %3F, %3A, %40, %26, %3D, %2B, %24, %2C, %23) because unescaping %26 inside a full URL would split one query value into two separate parameters. decodeURIComponent() unescapes every valid %HH sequence indiscriminately, making it the right default for isolated query values, embedded JSON strings, and callback targets. When you later need to re-escape edited parameters cleanly, switch over to the URL Encoder Tool.

Handling + Spaces vs. Literal Plus Signs Across URI Sections

One of the oldest incompatibilities on the web is how + behaves after decoding. Under RFC 3986, + is a valid sub-delimiter whose literal value is a plus sign, and spaces are always %20. Under the HTML application/x-www-form-urlencoded specification (used by HTML <form method="get"> submissions and URLSearchParams), spaces inside query strings serialize as + while literal plus signs serialize as %2B.

Consider two real-world strings:

  • Path segment: /docs/C++_Memory_Model.pdf — here + is literal. Replacing + with spaces would break the path into /docs/C _Memory_Model.pdf.
  • Query string: ?q=C%2B%2B+memory+model — here + represents spaces and %2B represents literal pluses, decoding cleanly to C++ memory model.

In this tool, Component mode normalizes + into %20 prior to calling decodeURIComponent() so standard query strings decode naturally, while Full URL mode leaves literal + characters untouched to preserve path integrity.

Troubleshooting Malformed Sequences, Legacy Charsets, and Multi-Layer Encoding

When decoding real traffic captures, web logs, or legacy enterprise endpoints, strict UTF-8 decoders frequently throw exceptions or reveal surprising artifacts. Use the diagnostic matrix below to isolate the root cause quickly.

Raw Pattern / SymptomTechnical Root CauseBehavior in Strict DecodersRemediation
%2520, %252F, %253DDouble encoding (% escaped to %25 on a second pass)Decodes once to %20, %2F, %3DRun a second decode pass; remove duplicate encoder call in client or proxy
50%20off% or width=100%Unescaped literal % not followed by two hex digitsThrows URIError: malformed URI sequenceEscape literal percent signs as %25 before decoding
%E9 (expects é)Legacy ISO-8859-1 / Windows-1252 single-byte encodingThrows URIError (invalid UTF-8 lead byte)Decode raw bytes using Windows-1252/Latin-1, or re-encode upstream as UTF-8 (%C3%A9)
%F0%9F%98 (3 bytes only)Truncated 4-byte UTF-8 sequence (e.g., DB column cutoff)Throws URIError (incomplete continuation)Increase URL/column byte limit; never slice percent-encoded strings mid-triplet
%C0%AF (overlong /)Non-shortest-form UTF-8 byte sequence (often an attack probe)Rejected by RFC 3629 strict UTF-8 decodersBlock at WAF/router; never normalize overlong sequences into ASCII /
%2F remains %2FDecoded using decodeURI() instead of decodeURIComponent()Preserves encoded reserved delimitersSwitch to Component mode (decodeURIComponent)

Forensic Debugging, Safe Decoding Code, and Security Traps

When inspecting REST GET requests that serialize entire filter objects into query parameters (such as ?filter=%7B%22status%22%3A%22open%22%2C%22limit%22%3A25%7D), decode the parameter value here and pass the resulting JSON string directly into the JSON Formatter to syntax-highlight and validate nested keys. For multi-hop marketing or tracking chains where decoded parameters reveal additional redirect hops, trace the actual HTTP 301/302 chain using the Redirect Checker.

Resilient Multi-Layer Unwrapping in JavaScript and Python

When parsing unpredictable server access logs where some lines contain stray % signs or double-encoded parameters, catch URIError defensively and detect redundant layers with /%25[0-9A-Fa-f]{2}/:

function safeUnwrapQueryValue(raw, maxPasses = 3) {
  let current = raw.replace(/\+/g, ' ');
  for (let i = 0; i < maxPasses; i++) {
    try {
      const next = decodeURIComponent(current);
      if (next === current) break;
      current = next;
    } catch {
      break; // Stop cleanly on stray '%' or non-UTF-8 octets
    }
  }
  return current;
}

In Python log-analysis pipelines, urllib.parse.unquote_plus(value, errors='replace') decodes form query values without crashing on malformed bytes, whereas urllib.parse.unquote(path) preserves literal + characters in filesystem-like paths.

Security Traps After Decoding

Never treat a decoded URL parameter as trusted input. Security vulnerabilities routinely arise at the boundary between decoding and downstream consumption:

  • Path Traversal via Double Encoding: If a reverse proxy checks for ../ once, an attacker sending %252e%252e%252f can bypass the first filter and trigger directory traversal if the backend framework decodes the path a second time.
  • Reflected DOM XSS: Extracting a parameter via URLSearchParams or decodeURIComponent() and injecting it into innerHTML turns %3Cimg%20src%3Dx%20onerror%3D...%3E into executable markup. Always bind decoded strings to textContent or template-escaped nodes.
  • Open Redirects: Validate decoded next or returnUrl parameters against an explicit allowlist of relative paths or trusted origins after canonicalization, never before decoding.

How to Use URL Decoder Tool

1

Paste your percent-encoded URL, raw query string, or multi-line log excerpt into the input panel.

2

Leave Component mode (decodeURIComponent) selected to unescape all percent sequences and '+' spaces, or switch to Full URL (decodeURI) to keep structural delimiters intact.

3

Inspect the decoded UTF-8 text in the output pane and review the Query Parameter Inspector table for individual key-value pairs.

4

If the output still contains '%20', '%2F', or '%3A' from double encoding, copy the output back into the input to unwrap the second layer.

5

Copy the clean decoded string or download it as a text file for further formatting or debugging.

Real Examples

Standard Space Decoding

Decoding a string containing percent-encoded spaces.

Input
Hello%20World%21
Output
Hello World!

Query Parameter Decoding

Decoding an email address containing an encoded '@' symbol.

Input
user%40example.com
Output
user@example.com

Unicode & Emoji Decoding

Decoding a modern UTF-8 multi-byte string.

Input
https://shop.com/search?q=t-shirt%20%F0%9F%91%95
Output
https://shop.com/search?q=t-shirt 👕

Frequently Asked Questions

Why does decodeURI leave %2F, %3F, %26, and %3D still encoded?
By ECMAScript specification, decodeURI intentionally skips percent-encoded RFC 3986 reserved delimiters (; / ? : @ & = + $ , #) so unescaping a full URL does not turn encoded data into new path separators or query boundaries. Switch to Component mode (decodeURIComponent) to decode every valid percent sequence.
What triggers a 'URI Error: malformed URI sequence' during decoding?
Two conditions cause URIError: a stray '%' sign not followed by two hexadecimal digits (such as 'discount=50%'), or a decoded byte sequence that violates UTF-8 encoding rules (such as a truncated emoji like '%F0%9F' or a legacy Latin-1 byte like '%E9' instead of '%C3%A9').
How can I tell if a URL has been double-encoded?
Look for '%25' followed immediately by two hexadecimal characters — such as '%2520' (a double-encoded space), '%252F' (a double-encoded slash), or '%253D' (a double-encoded equals sign). Decoding once converts '%2520' to '%20'; applying Swap & Decode a second time restores the original space.
Why did a plus sign (+) inside my decoded string turn into a space?
In HTML form submissions (application/x-www-form-urlencoded), spaces inside query strings are serialized as '+' while literal plus signs are encoded as '%2B'. Component mode translates '+' into a space to match standard query parsers; switch to Full URL mode when decoding paths where '+' is a literal character.
Is decoding an unknown affiliate, email, or OAuth callback link safe here?
Yes. Decoding translates text locally inside your browser without issuing any HTTP request or following redirects, allowing you to inspect destination hostnames, nested redirect_uri values, and embedded tokens safely before ever visiting the URL.

Key Features

  • Instant percent-decoding with toggleable decodeURIComponent (Component) and decodeURI (Full URL) algorithms
  • Automatic query-string '+' to space normalization in Component mode alongside strict path preservation in Full URL mode
  • Interactive Query Parameter Inspector displaying parsed '?key=value' pairs with live editing and hash preservation
  • Multi-pass unwrapping via one-click mode/output swapping to peel back double- and triple-encoded URLs
  • Graceful URIError detection for stray '%' symbols, truncated UTF-8 octets, and legacy single-byte encodings
  • Client-side parsing with line-by-line batch decoding, clipboard copy, and plain-text download

Common Use Cases

  • Unwrapping serialized JSON filter objects sent inside REST API GET query parameters for readable inspection
  • Auditing multi-hop marketing, email-click, and affiliate tracking links to expose the real destination URL
  • Diagnosing reverse-proxy and CDN double-encoding regressions where spaces render as '%2520' in application logs
  • Inspecting OAuth 2.0, SAML, and OpenID Connect authorization callbacks containing nested redirect_uri parameters
  • Restoring percent-encoded internationalized paths (Arabic, CJK, Cyrillic, accented European routes) from server access logs
  • Examining suspicious percent-encoded payloads from Web Application Firewall alerts during security triage

Explore More Tools in This Category

View All Developer & Utility Tools

JWT Decoder Tool

Inspect JSON Web Tokens locally in real time. Decode Base64url headers and payload claims, evaluate Unix exp/iat/nbf timelines, and flag risky signing algorithms without sending tokens over the network.

Hash Generator Tool

Compute MD5, SHA-1, SHA-224, SHA-256, SHA-384, SHA-512, SHA3-256, and SHA3-512 cryptographic digests simultaneously for text or local files directly inside your browser.

MD5 Generator Tool

Compute 128-bit MD5 checksums for UTF-8 strings and large local files with 2 MB chunked browser streaming, live hash verification, and zero server uploads.

SHA256 Generator Tool

Generate FIPS 180-4 SHA-256 digests for text and local files entirely in your browser using hardware-accelerated Web Crypto APIs, hybrid chunked streaming, and instant hash comparison.

Advanced Password Generator

Generate cryptographically secure passwords, memorable word hybrids, and Diceware passphrases completely offline with live entropy analysis, character-pool filters, and local QR handoff.

HMAC Generator & Verifier

Generate and validate RFC 2104 Hash-based Message Authentication Codes (HMAC-SHA256, HMAC-SHA512, HMAC-SHA1, and HMAC-MD5) locally for text payloads and files using Web Crypto APIs.

QR Code Generator & Designer

Create permanent, non-expiring QR codes for URLs, WiFi networks, vCards, events, and crypto addresses with custom colors, gradients, rounded modules, embedded logos, and instant SVG, PNG, or batch ZIP downloads.

Linux Chmod Permissions Calculator

Compute exact Unix octal bitmasks and symbolic permission strings for Owner, Group, and Others with real-time bitwise evaluation.