URL encoder and decoder

Make text safe to use inside a URL, or turn an encoded link full of %20 and %3A back into readable text.

Private: works in your browser, nothing is uploaded.

How to use the URL Encode / Decode tool

  1. Paste your URL or text.
  2. Choose “Component” for a single query value or “Full URL” for a complete address.
  3. Click “Encode” or “Decode” and copy the result.

What is URL encoding?

URLs may contain only a limited set of characters. Everything else, such as spaces, accented letters and symbols like & or ?, must be written as a percent sign followed by a hexadecimal code. A space becomes %20, an @ becomes %40, and the letter é becomes %C3%A9 (its two UTF-8 bytes).

Component or full URL?

  • Component encodes everything except letters, digits and - _ . ! ~ * ' ( ). Use it for a single query value, for example a search term that contains & or =.
  • Full URL keeps characters that structure a URL, such as : / ? # and &, and encodes only the rest. Use it to clean up a complete link that contains spaces.

When decoding in component mode, plus signs are treated as spaces, which matches how HTML forms submit data.

Privacy

Everything you type stays in your browser. Nothing is sent to a server or stored.

Examples

  • Search for “pelican & co” in a query string: ?q=pelican%20%26%20co. Without encoding, the & would start a new parameter.
  • A file name with spaces: my report.pdf becomes my%20report.pdf.
  • A redirect address inside another URL: ?next=https%3A%2F%2Fexample.com%2Fpage.

Reading tracking links

Links in emails and ads are often wrapped several times: the real address sits inside a parameter of a redirect link, encoded once or even twice. Decoding the link shows where it really leads before you click, and helps to remove tracking parameters such as utm_source when you share a clean link.

Frequently asked questions

Why does my link show %20?

%20 is an encoded space. Browsers usually display it as a space, but it is stored encoded.

What does “invalid % sequence” mean?

A percent sign must be followed by two hexadecimal digits. A stray % in text cannot be decoded.

Is URL encoding the same as Base64?

No. URL encoding only escapes unsafe characters; Base64 converts all data into a different alphabet.

Does it handle non-English characters?

Yes. Characters are encoded as UTF-8, the standard for URLs.

Why is my text encoded twice (%2520)?

%25 is an encoded percent sign. The text was encoded once, then the result was encoded again. Decode twice to get the original.

Should I encode a whole URL before putting it in a link?

Only the parts that contain unsafe characters, usually query values. Encoding the whole address in component mode would also encode : and /, and the link would no longer work.