Skip to tool

url decoder

Decode percent-encoded URLs back to readable text with our free URL decoder. Convert %20, %3A, %2F to original characters – essential for web developers and API debugging.

Last verified Feb 26, 2026

13 views Updated: Apr 18, 2026

URL Decoder

Decode a percent-encoded URL using decodeURIComponent.

How to Use url decoder

  1. 1

    Enter Source Value

    Type or paste the value you want to convert into the Url Decoder. The tool accepts a wide range of input formats.

  2. 2

    Select Target Format

    Choose your desired output format or unit from the available options. The conversion starts automatically.

  3. 3

    Copy the Result

    Review the converted output and click copy to use it in your project, document, or workflow.

Pro Tip: Paste large blocks of content into the Url Decoder — there's no size limit on input for most conversions.

Understanding url decoder

Understanding URL Encoding and Decoding

URLs (Uniform Resource Locators) are the addresses used to access resources on the internet. However, URLs can only contain a limited set of characters. Characters outside this set, such as spaces, punctuation, or non-ASCII characters, must be encoded to ensure the URL remains valid and can be transmitted correctly over the web.

Why URL encoding exists: The URL specification restricts certain characters because they have special meanings (like ? for query parameters or # for fragments) or are not allowed in URLs at all (like spaces). To include these characters safely, they are converted into a percent-encoded format, where each unsafe character is replaced by a percent sign (%) followed by two hexadecimal digits representing the character’s ASCII code.

How URL encoding works technically: When a URL contains characters outside the allowed set, each such character is replaced by a percent sign and its ASCII value in hexadecimal. For example, a space character ( ) is encoded as %20. Similarly, the character ! becomes %21. This process is called percent-encoding.

URL decoding is the reverse process. It takes a percent-encoded string and converts each %XX sequence back to its original character. This is essential for web servers and applications to interpret the URL correctly and retrieve the intended resource or data.

Common scenarios where URL encoding and decoding are used

  • Form submissions: When users submit data via web forms, special characters in the input are encoded to be safely included in the URL query string.
  • Query parameters: URLs often include parameters to specify filters, search terms, or other data. Encoding ensures these parameters are transmitted without corruption.
  • Link sharing: URLs copied from browsers or shared via email or messaging apps may contain encoded characters to preserve spaces and symbols.
  • APIs and web services: When sending data in URLs, encoding ensures that reserved characters do not interfere with the URL structure.

Without decoding, these encoded URLs would be hard to read or interpret correctly. URL decoders convert these encoded strings back to their original, human-readable form, making it easier to understand and work with URLs.

Examples

Decoding a URL with spaces and special characters

When you want to read the actual search query from a URL containing encoded spaces and punctuation.

Before: https://example.com/search?q=hello%20world%21

Result: https://example.com/search?q=hello world!

Decoding query parameters for API debugging

When inspecting API requests to understand the filters applied in the query string.

Before: https://api.example.com/data?filter=name%3DJohn%26age%3D30

Result: https://api.example.com/data?filter=name=John&age=30

What is URL Encoding and Decoding?

URLs are the addresses used to locate resources on the internet. However, not all characters can be used directly in URLs because some have special meanings or are not allowed. To handle this, URL encoding converts these characters into a safe format using percent-encoding. For example, spaces become %20, and special symbols like ! become %21.

URL decoding is the reverse process. It converts these encoded sequences back into their original characters. This is essential for web servers and applications to correctly interpret the data contained in URLs.

When Should You Use a URL Decoder?

  • When you encounter URLs with encoded characters and need to read or edit them in a human-readable form.
  • When debugging web applications or APIs that use encoded URLs to ensure the data is correct.
  • When extracting or analyzing query parameters from URLs.
  • When working with URLs copied from browsers or logs that include encoded characters.

Common Mistakes to Avoid

  • Decoding a URL multiple times, which can corrupt the data by decoding already decoded characters.
  • Confusing URL encoding with other encoding types like HTML encoding, leading to incorrect decoding.
  • Trying to decode URLs that are only partially encoded, resulting in mixed readable and encoded characters.

Technical Context

URL encoding is defined by standards such as RFC 3986. It ensures that URLs remain valid and unambiguous when transmitted over the internet. Percent-encoding replaces unsafe characters with a percent sign and two hexadecimal digits representing the character’s ASCII code.

Decoding is necessary because many web technologies and browsers automatically encode URLs. When processing or displaying these URLs, decoding reveals the original data, making it easier to understand and manipulate.

Frequently Asked Questions

URL decoding is the process of converting percent-encoded characters in a URL back to their original form. It reverses URL encoding, which replaces unsafe characters with a percent sign followed by hexadecimal digits.
To use a URL decoder, you input a URL or string containing percent-encoded characters. The tool then converts these sequences back to their original characters, making the URL readable and easier to interpret.
URL decoding itself is safe as it simply converts encoded characters back to their original form. However, decoded URLs should be handled carefully, especially if they contain user input, to avoid security risks like injection attacks.
Yes, you can decode URLs manually by replacing each percent-encoded sequence with its corresponding character using an ASCII table. However, this is tedious and error-prone, so using an online URL decoder tool is recommended.
Percent signs followed by two hexadecimal digits represent encoded characters in URLs. This encoding ensures that special or unsafe characters are transmitted correctly over the internet.
Characters that are not allowed in URLs or have special meanings, such as spaces, punctuation marks, and non-ASCII characters, are encoded. For example, spaces become %20, and ampersands become %26.
URL decoding can help reveal the original URL if it was improperly encoded or partially encoded, but it does not fix broken links caused by other issues like missing resources or server errors.
URL decoding restores the original characters but does not change the URL's meaning. It simply makes the URL human-readable and easier to work with.