URL Encoder & Decoder

Percent-encode a single query value or path component before adding it to a URL. For example, an ampersand inside a shop name needs encoding so it stays part of the name.

Workspace

Result

Your result will appear here.

How to use it

  1. Choose encode for plain text or decode for an encoded value.
  2. Paste just the component, such as a search phrase or product name.
  3. Copy the converted value into the appropriate part of the URL.

Worked example

Input
tea & coffee
Output
tea%20%26%20coffee

Frequently asked questions

Should I paste a complete URL?

Use a single value or path component. Encoding an entire address also encodes its structural punctuation, including the slashes after https:.

Why does a plus sign stay a plus sign when I decode?

This tool decodes URL components. In a form-encoded query, a plus sign can represent a space. For component encoding, the space is %20 and a literal plus can be written as %2B.

Why did %20 turn into %2520?

The percent sign itself is encoded as %25. Starting with a value that was already encoded adds another layer. Check the original value before decoding or encoding it again.