URL decoding converts percent-encoded sequences such as %20 into the characters they represent, turning an encoded address back into readable text.

A URL can contain only a limited set of characters. Spaces, punctuation, accented letters, Chinese characters, emoji, and reserved symbols such as an ampersand may need percent-encoding before they can travel safely inside an address. URL decoding reverses that representation so you can read the underlying text.

This is a data transformation, not encryption. Percent-encoding does not hide a value or protect a secret; it simply represents characters in a format that web addresses can carry. Decoding is useful for inspecting shared links, query parameters, redirects, API values, and tracking strings.

decode url explained
Decode URL Explained: How Percent-Encoding Works

What percent-encoding represents

Percent-encoding writes each relevant byte as a percent sign followed by two hexadecimal digits. A space, for example, appears as %20. A reserved character such as an ampersand or equals sign is represented in the same way when it must be treated as data rather than URL syntax.

The RFC 3986 URI specification separates characters into groups that affect how a URL is interpreted. Understanding that distinction helps explain why two pieces of text can look different even when they represent the same data.

Character group Examples Why it matters
Unreserved characters Letters, digits, hyphen, dot, underscore, and tilde These can remain readable in a URL.
Reserved characters Ampersand, equals sign, question mark, hash, and slash They may separate query fields or URL sections, so an isolated value must escape them.
Characters requiring transformation Spaces, accented letters, Chinese characters, and emoji Their UTF-8 bytes are represented with percent sequences.

Reserved characters are not inherently invalid. Their meaning depends on context. A slash can divide path segments in a full URL, while the same slash inside one query value may need to be escaped. This is why choosing the correct scope matters before either encoding or decoding.

What decoding changes—and what it leaves alone

Decoding replaces valid percent sequences with the characters they represent. For instance, https://example.com/search?q=blue%20shirt becomes https://example.com/search?q=blue shirt, making the encoded space visible.

That decoded version is primarily a readable representation. A literal space or unescaped non-ASCII character may need to be encoded again before it is placed back into a request. Decoding restores character content, but it does not decide which application-specific interpretation you should assign to a parameter.

The plus sign also deserves special attention. In this tool’s URI-decoding process, + remains an ordinary plus sign; it is not automatically converted into a space. Some form-submission formats use plus signs for spaces, but that is a different encoding convention from percent-decoding a URI.

Choose the right scope

The URL Decoder offers two scopes because encoding an isolated value and tidying a complete address are different tasks. The same distinction determines which URI rules apply when you decode.

Scope Input to select How it treats the text
URL component One query value, path segment, or fragment Escapes every reserved character, including delimiters such as &, =, ?, #, and /, when encoding.
Full URL A complete web address Keeps structural characters such as the colon, slashes, question mark, and hash intact while escaping unsafe content.

Select component mode when the pasted text is only part of an address. Select Full URL mode when the surrounding structure must remain a working whole. If a complete callback address is being carried inside another URL’s query value, the nested address is a component value even though it looks like a full URL on its own.

Decode a URL step by step

  1. Open the URL Decoder and choose URL component for an isolated query value, path segment, or fragment. Choose Full URL for a complete address.
  2. Select Decode as the direction. This reverses percent-encoding and converts the encoded text back into readable characters.
  3. Paste the encoded text into the input box. The result updates immediately as you type. If the input contains an invalid escape or an incomplete UTF-8 sequence, the tool displays a clear error instead of returning a corrupted string.
  4. Click Copy to place the decoded result on your clipboard, ready to inspect or place into the appropriate URL, API request, or code.

If the decoded result will be reused in a URL or request, switch the direction to Encode and apply the same scope. That prevents readable spaces or non-ASCII characters from being inserted into a context that requires percent-encoded data.

Handle Unicode and malformed escapes

The tool processes text as UTF-8 before percent-encoding it. A Chinese phrase or emoji can occupy several UTF-8 bytes, and each byte becomes its own percent group during encoding. Decoding reverses that process, allowing accented letters, CJK text, and emoji to return to their original characters without byte corruption. The implementation follows the browser’s URI-encoding functions described in MDN’s URI-encoding reference.

Not every string containing a percent sign is valid percent-encoded text. Common failures include:

  • A lone percent sign that is not followed by two hexadecimal digits.
  • A sequence such as %zz, where the two characters are not valid hexadecimal digits.
  • A truncated multi-byte sequence whose required continuation bytes are missing.

The decoder stops on these inputs and identifies the problem rather than silently producing a broken result. Correct the source instead of guessing which characters were intended. Also remember that decoding removes one layer at a time: a double-encoded sequence becomes another percent-encoded sequence after the first decode, not directly into its final readable value.

Decide when to decode, encode, or leave it unchanged

Use decoding when your task is to understand or inspect existing data. Use encoding when your task is to insert text into a URL, query value, path segment, API request, or nested callback address. Leave the original string unchanged when it is already valid for its exact context.

  • Read a shared link: Decode the full address to reveal human-friendly text hidden in its query string.
  • Build a query value: Encode an isolated search term, name, or filter using component mode so delimiters cannot break the surrounding URL.
  • Prepare an API request: Encode each dynamic value separately rather than encoding the entire request URL as one component.
  • Inspect a redirect or tracking parameter: Decode the parameter value to review what it contains, then preserve the original context if the URL is not being changed.

Developers who need a code-based approach can also use the guide to decoding URL parameters in JavaScript. The browser tool remains useful when you want a direct, local workflow without writing a throwaway script.

Keep the workflow private and repeatable

Encoding and decoding happen entirely inside your browser using JavaScript. The input is not uploaded, there is no account, and no server receives your text. The page also continues working offline after it has loaded, which keeps sensitive tokens, personal information, and internal URLs on your device.

For a repeatable process, keep the original string, identify whether it represents a component or a whole URL, decode only the layer you need, and resolve any error at its source. If the result will be reused, re-encode it with the appropriate scope rather than treating the human-readable output as automatically safe. This preserves both the meaning of the original text and the structure of the address around it.

For a deeper look, see UTF-8 Decode in Flutter: Bytes to Dart Text.