Text Tools

URL Decoder

Convert percent-encoded URLs, query strings, and form data back into human-readable text. Supports Component (decodeURIComponent) and Complete URL (decodeURI) modes with instant live preview.

URL Decoder & Percent-Decoder

Decode percent-encoded sequences (such as %20, %26, %3D, %2B), query strings, and plus signs into readable text. Choose between component-level parameter decoding and complete-URL preservation.

Action: Switch to URL Encoder
Load Sample:
URL Decoding Configuration & Rules
0
Input Chars
Encoded source length
0
Output Chars
Decoded string length
0
Tokens Decoded
Percent sequences found
0
Chars Reduced
Input - Output delta
0
Total Words
Decoded word count
0
+ Replaced
Plus signs converted
Component
Active Mode
Decoding scope
100% In-Browser Privacy • No Server Uploads

How to Use the Online URL Decoder

Follow these 5 simple steps to decode percent-encoded URLs, query string parameters, and form-encoded data back into readable text:

1
Paste or Upload Encoded Text

Paste your percent-encoded URL, query string, or tokenized text into the left input textarea. You can also upload a .txt or .url file directly.

2
Select Decoding Scope

Choose between Component Mode (for individual parameter values, decoding all tokens) and Complete URL Mode (preserving http://, ?, &, #).

3
Configure Plus (+) Behavior

If your string comes from a web form (application/x-www-form-urlencoded), select Treat + as space to convert plus signs to spaces. Otherwise, leave it as literal plus.

4
Instant Real-Time Preview

With Live Auto-Decode enabled, results appear instantly as you type. Or click the primary Decode URL button to perform manual decoding.

5
Copy or Download Result

Click Copy to copy the decoded output directly to your clipboard, or click Download to export the readable text as a url-decoded.txt file.

6
Inspect Live Statistics

Review the real-time statistics grid showing input/output character counts, percent tokens decoded, word counts, and plus signs replaced.

Understanding URL Decoding: Component vs. Complete URL

JavaScript provides two distinct standard decoding functions: decodeURIComponent() and decodeURI(). Choosing the correct mode is critical when processing web addresses and API payloads:

decodeURIComponent() Component Mode

Designed for individual parameter keys, parameter values, header contents, and arbitrary data payloads.

  • Decodes all percent-encoded sequences without exception.
  • Converts %2F into /, %3F into ?, %26 into &, and %3D into =.
  • Warning: If applied to an entire URL, it destroys the URL structure by turning encoded parameter delimiters into literal syntax!
  • Best used for: Query values like q=coffee%26tea → coffee&tea.
decodeURI() Complete URL Mode

Designed for complete web links (Uniform Resource Identifiers) containing protocols, domains, paths, query strings, and fragments.

  • Decodes percent-encoded characters except structural reserved characters.
  • Leaves %23 (#), %26 (&), %2F (/), %3A (:), %3D (=), and %3F (?) encoded.
  • Decodes spaces (%20), accents (%C3%A9), and multilingual Unicode characters without breaking query delimiters.
  • Best used for: Full links like https://example.com/caf%C3%A9?user=1.
The Plus Sign (+) Dilemma: Form-Encoding vs. RFC 3986

In standard URI percent-encoding (RFC 3986), a space is encoded as %20 and a literal plus sign is encoded as %2B. However, in legacy HTML form submissions (application/x-www-form-urlencoded), spaces are encoded as literal plus signs (+). Standard JavaScript decodeURIComponent() does not convert + into a space. If your text originated from a web form or query string with plus signs representing spaces, enable the Treat + as space option in this tool!

URL Decoding & Percent-Encoding Reference Table

Below is a quick reference guide of the most common percent-encoded sequences, their decoded character equivalents, ASCII hexadecimal codes, and their semantic meaning in URLs:

Percent Token Decoded Char Hex Code Category Description / Function in URLs
%20 [space] 0x20 Whitespace Standard RFC 3986 space character
+ [space] (if enabled) 0x2B Form Space Form-encoded space (application/x-www-form-urlencoded)
%2B + 0x2B Reserved Literal plus sign (never converted to space)
%26 & 0x26 Reserved Query parameter delimiter (separates key=value pairs)
%3D = 0x3D Reserved Query assignment operator (binds key to value)
%3F ? 0x3F Reserved Query string initiator (separates path from query)
%23 # 0x23 Reserved Fragment identifier / anchor delimiter
%2F / 0x2F Reserved URL path segment separator
%3A : 0x3A Reserved Protocol separator (e.g., https:) and port prefix
%25 % 0x25 Escape Indicator Percent character itself (must be encoded to avoid ambiguous tokens)
%40 @ 0x40 Reserved Userinfo separator in URLs (e.g., user@host)
%24 $ 0x24 Sub-delimiter Dollar sign, commonly used in pricing and API filters
%C3%A9 é 0xC3 0xA9 UTF-8 Multi-byte Accented e (2-byte UTF-8 sequence)
%F0%9F%9A%80 🚀 0xF0 0x9F 0x9A 0x80 UTF-8 Emoji Rocket emoji (4-byte UTF-8 sequence)

Security Notice: URL Decoding vs. Decryption

URL Encoding is NOT Cryptographic Encryption

Important Security Distinction: URL encoding (percent-encoding) is an encoding format designed solely for safe transport of non-ASCII and reserved characters over HTTP/URI protocols. It is not encryption. Anyone can decode a percent-encoded string instantly using any standard tool. Never place confidential passwords, credit card numbers, or sensitive API secrets into URL query strings relying on percent-encoding for confidentiality.

100% Client-Side Processing

All decoding operations are executed exclusively within your web browser using JavaScript. No input text, query parameters, or decoded outputs are ever uploaded to our servers, logged to databases, or transmitted to third parties.

Safe Text Rendering

The tool strictly outputs plain text via textarea elements and prevents HTML script injection (XSS). Even if decoded strings contain raw <script> tags or HTML markup, they are safely rendered as text without execution.

Frequently Asked Questions (FAQ)

Find authoritative answers to common questions regarding URL percent-decoding, character sets, and standards:

URL decoding (also known as percent-decoding or URL unescaping) is the process of converting percent-encoded octets (such as %20, %26, or %3D) back into their original human-readable characters (spaces, ampersands, equals signs, etc.). It restores query parameter values, URL paths, and form-encoded data to their readable state.

In the standard ASCII table, the space character has a decimal value of 32, which equals hexadecimal 20. Since URLs cannot contain literal spaces, RFC 3986 requires spaces to be represented as %20. Decoding %20 restores the original space character.

decodeURIComponent() decodes every percent-encoded character, including reserved URL delimiters like /, ?, &, =, and #. It is meant for query parameter values. In contrast, decodeURI() leaves structural delimiters intact so that a full URL remains structurally valid while decoding spaces, paths, and non-ASCII characters.

In HTML form data (MIME type application/x-www-form-urlencoded), spaces are traditionally replaced with + signs. However, in standard RFC 3986 URI encoding, a plus sign is a literal plus and spaces are %20. Our tool provides a dedicated Treat + as space toggle so you can decode both form-encoded and standard RFC 3986 strings correctly.

Yes! Simply select Decode Complete URL in the mode selector. This ensures that the protocol (https://), query delimiters (? and &), and fragment hashes (#) are preserved and not destroyed by premature decoding.

Standard browser APIs throw a URIError: URI malformed when encountering incomplete tokens (like % or %2) or invalid hexadecimal pairs (like %GG). Our tool includes an intelligent Lenient Recovery mode that gracefully decodes all valid portions while preserving unparseable percent tokens without crashing.

Yes. URLs encode Unicode characters as sequences of percent-encoded UTF-8 bytes (e.g., %C3%A9 for é, or %F0%9F%9A%80 for 🚀). Our tool fully decodes multi-byte UTF-8 sequences for Arabic, Chinese, Japanese, Cyrillic, Hindi, and emoji glyphs accurately.

Double encoding occurs when an already percent-encoded string has its percent signs encoded a second time (for example, space %20 becomes %2520). By setting Decoding Passes to Double Pass, the tool applies two consecutive decoding cycles to return the original unencoded text.

No. URL decoding is merely transforming public character representations back into readable text. Decryption requires a cryptographic secret key to reverse an encrypted cipher. URL encoding does not encrypt or protect data from unauthorized viewing.

When Preserve Line Breaks is active, the tool decodes each line independently. You can paste lists of hundreds of URLs or parameters separated by line breaks, and the tool will decode each line while maintaining line structure.

There is no strict artificial character limit. The tool processes strings locally in your browser memory. Strings containing hundreds of thousands of characters or entire log files can be processed smoothly in milliseconds.

Yes! You can click the Swap Input & Output button or click over to our companion URL Encoder tool to percent-encode any string according to RFC 3986 standards.
Action completed successfully