# URL encoder and decoder

Updated 2026-11-28

Percent-encode a string for use in a link, or decode a percent-encoded string back to the characters you typed.

The interactive tool runs in the browser at /tools/url-encoder.

A URL encoder turns characters that are not safe in a link into percent codes. A space becomes %20, a slash becomes %2F and a question mark becomes %3F. The decoder turns those codes back.

## How do you encode a value for a link?

Paste the value, not the whole address. A campaign name with a space, or a keyword with an ampersand, is what needs encoding. Encoding the whole URL also encodes the :// and the address stops being an address. The [UTM builder](/tools/utm-builder) encodes [UTM parameters](/glossary/utm-parameters) for you, which is the better path for campaign tags.

## A worked example

The words summer sale become summer%20sale. The words fish & chips become fish%20%26%20chips. Decoding either string returns the words, and a plus sign is read as a space so a form-encoded link still makes sense.

A percent sign that is not followed by two hex digits is reported, not guessed.

## Frequently asked questions

### What is percent-encoding?

A way to write a character as a percent sign and two hex digits, so it can sit inside a URL without being read as part of the URL's structure.

### Does a space become %20 or a plus?

Here it becomes %20. Some form encodings use a plus. The decoder treats a plus as a space so both kinds of link read correctly.

### Should I encode a whole URL?

No. Encode the value you are inserting. Encoding the whole URL encodes the :// and the address stops being an address.

### Is this tool free?

Yes. The text stays in your browser.
