URL Decode Decode or encode URLs and query strings

Paste an encoded URL or a value to see its text and query parameters. Everything updates as you type.

Convert a URL or value

Forms send spaces as +, while paths use %20. Turn this off for a literal plus sign in a path.

Conversion runs entirely in your browser. Your input is not stored or sent anywhere.

What is URL encoding?

URL encoding represents certain characters as a percent sign followed by two hexadecimal digits. Each escape describes one byte. UTF-8 characters can need several bytes, so a check mark becomes %E2%9C%93. A space commonly becomes %20. Encoding lets text fit where a URL has special rules for separators and other characters.

URL encoding is not encryption: anyone can decode it without a key. Encoding a password does not hide it. HTTPS encrypts the request in transit; percent-encoding is a separate representation of its text.

Choose Encode a value for one query parameter so a literal & or = does not become a separator. Choose Encode a full URL to leave the address separators in place. If a value inside that URL contains a separator, encode the value before assembling the URL.

How to decode a URL

Read the original text

Paste a URL, a query string or an encoded value into the first box. Choose Decode to read UTF-8 escapes and optionally treat + as a space. Press Copy output to copy the result as text. The tool does not follow the URL or load its destination. Decoding the entire URL can expose separators that were part of a value; use the parameter table to keep those boundaries clear.

If an escape is malformed, the error names the cause and a character position starting at 1. A cut-off UTF-8 sequence is different from a non-hex escape. Correct the source rather than deleting arbitrary percent signs.

Recognize double encoding

A value such as %2520 becomes %20 after one pass. If the output still contains an escape, press Decode again to convert it one more time. This is a suggestion: a literal percent sequence may be intentional. The tool never silently decodes repeatedly.

Press Swap to put the output in the input box and reverse the conversion direction. When you decode text and then encode it again, choose the option for a value or a full URL. The new output may use %20 where the original used +, even though both can represent a space.

How to URL decode in Python, JavaScript and the command line

In Python, urllib.parse.unquote('a%20b') returns 'a b'. Use urllib.parse.unquote_plus('a+b') when + means a space. These functions are described in the Python documentation. Python’s default error handling can replace invalid UTF-8; use errors='strict' to reject it.

In JavaScript, decodeURIComponent('a%20b') returns 'a b', but leaves a literal + unchanged. For form-style values, replace plus signs with spaces before decoding: decodeURIComponent(value.replace(/\+/g, ' ')).

From a terminal with Python 3 installed, use this Bash-compatible command:

python3 -c 'import sys; from urllib.parse import unquote_plus; print(unquote_plus(sys.argv[1]))' 'a+b%26c'

It prints a b&c. Single quotes protect the argument from shell interpretation. Do not paste private values into shared terminal history.

URL encoding questions

What does %20 mean in a URL?

It represents a space. Other common escapes include %2F for /, %3D for =, %26 for & and %25 for %. The hex digits are case-insensitive: %2f and %2F both mean /.

Is URL encoding the same as encryption?

URL encoding is not encryption. Anyone can reverse percent-encoding without a secret key. It represents characters; it does not protect a password, token or other sensitive information.

Is the URL encoded in HTTPS?

A URL can contain percent-encoded characters whether it uses HTTP or HTTPS. HTTPS protects the request in transit, while URL encoding represents characters within the URL. One does not replace the other.

Why do I see + instead of spaces?

Form-style query encoding uses + for a space, as defined by the URL Standard. A literal plus should be encoded as %2B in that format. For a path where + is literal, turn off Treat + as a space.

Should I encode a whole URL or one value?

Choose Encode a value for an individual parameter, including any literal &, = or #. Choose Encode a full URL to preserve the address separators. The tool cannot decide which separators in your original text were intended as literal data.