URL encoder and decoder

Percent-encode or decode text for query strings and wa.me links. Runs in your browser.

Encoded

Hello%20world%20%26%20more

Decoded

Hello world & more

How to use it

  1. Paste text and choose encode or decode.
  2. Encoding replaces spaces and special characters with percent codes, so the text is safe inside a query string.
  3. Decoding turns percent codes back into readable text.

Why it matters

A wa.me link with a pre-filled message, or any URL with a query string, breaks when the text contains spaces, line breaks, ampersands or non-English characters. Encoding fixes that.

Frequently asked questions

When do I need to encode?

Whenever you put free text into a URL parameter, such as the text value of a wa.me link.

What is the difference between encodeURI and encodeURIComponent?

encodeURIComponent encodes everything that could break a parameter value, including slashes, question marks and ampersands. Use it for values, not whole URLs.

Building with WhatsApp? See the quick start.