Skip to content

URL encoder and decoder

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

Spaces, slashes and question marks become percent codes.

The result shows here. Nothing you paste is sent anywhere.

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.

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 encodes 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.

More free tools

All free tools

Tool questions. Straight answers.

What people ask about this tool before they use the number.

  • 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.

  • 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.

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

  • Yes. The text stays in your browser.

Not answered here? Write to hello@crispstats.com

Your traffic, crisp and clear

One script, no cookies, and every feature from the first day. Set up takes about as long as pasting a snippet.