Writing toolsURL encoder and decoder

URL encoder and decoder

Encode or decode a URL component. Select whole URL to preserve reserved delimiters such as slashes and question marks.

Add or drop TXT, Markdown, CSV, TSV, LOG, DOCX, ODT, or PDF files.

Preview

What this tool is for

Prepare a search term or another value for use in a URL. An ampersand inside a value needs different treatment from an ampersand that separates two parameters.

How to use it

Leave Whole URL unchecked and encode “tea & rolls”. The result, “tea%20%26%20rolls”, can follow “?q=” as one value. To inspect it later, paste the encoded value into Your text and choose Decode.

Worked example

Input

tea & rolls

Result

tea%20%26%20rolls

When should I select Whole URL?

Select it when your input already contains the structure of an address and its slashes, question mark and parameter separators should remain meaningful. If a search term itself contains &, encode the term on its own first.