Quecko Logo

Free tool • Runs in your browser

URL encoder/decoder

Percent-encode text for URLs or decode encoded URLs back to readable text.

Loading tool...

Quick answer

URLs can only contain certain characters, so others become percent codes. Use component mode for a single query value, and full URL mode to keep characters like / and ? intact.

How to use it

  1. Paste your text or URL.
  2. Choose encode or decode, and the mode.
  3. Copy the result.

Example

Input
a b&c
Output
a%20b%26c

Common errors and how to fix them

URI malformed
The input has an incomplete percent code such as %E4%A.
My whole URL broke
Use full URL mode, as component mode also encodes : / ? and &.

Frequently asked questions

What is URL encoding?

It replaces characters that are unsafe in URLs with percent codes. For example, a space becomes %20.

How do I URL encode a string online?

Paste the text here, choose Encode, and copy the result.

How do I URL encode a space?

Use %20. In form-style data, a space can also be written as +.

How do I URL encode a password?

Encode it as a query value here, as characters such as @ and : can break connection URLs. Prefer test values, as real passwords are sensitive.

How do I URL encode in JavaScript?

Use encodeURIComponent for a single value, and encodeURI for a full URL.

How do I URL encode in Python?

Use urllib.parse.quote for a value, or urllib.parse.urlencode for a set of parameters.

How do I URL encode in bash?

Bash has no simple built-in. Use a Python one-liner or curl's --data-urlencode option.

What is the difference between encodeURI and encodeURIComponent?

encodeURI keeps characters such as / and ?, so use it for full URLs. encodeURIComponent encodes them too, so use it for values.

Why does it say the URI is malformed?

The input has an incomplete percent code, such as %E4%A.

Is what I paste uploaded?

No. Everything runs in your browser and nothing is sent to Quecko.

More developer tools

Need something built for your business?

Quecko designs and builds AI, Web3 and custom software products.

Start a Project