Encoding Pre-Filled WhatsApp, Mailto & UTM Parameters
Encode spaces (`%20`), line breaks (`%0A`), and ampersands (`%26`) in pre-filled `wa.me/?text=` or `mailto:?subject=` links so messages never get cut off mid-sentence.
Safely percent-encode text, search queries, redirect URLs, and pre-filled message parameters for use inside links and API requests. Choose between Query Value mode (`encodeURIComponent` — escapes `&`, `=`, `?`, `/`, and `+`) or Whole URL mode (`encodeURI` — preserves `https://` and path slashes while escaping spaces and Unicode).
Paste or type your plain text or URL into the left input box.
Select 'Query value (recommended)' if you are encoding a parameter value that goes after `?key=`, or 'Whole URL' if you are encoding a complete web address.
Inspect the percent-encoded output updated in real time on the right.
Click Copy Encoded to copy the safe string into your link or code.
Encode spaces (`%20`), line breaks (`%0A`), and ampersands (`%26`) in pre-filled `wa.me/?text=` or `mailto:?subject=` links so messages never get cut off mid-sentence.
Safely escape a destination URL (e.g. `?redirect_uri=https%3A%2F%2Fexample.com%2Fcallback%3Ftab%3D1`) so its internal `?` and `&` characters don't corrupt the outer URL.
Convert non-ASCII characters, accented letters, and symbols into RFC 3986 UTF-8 percent-escapes that work reliably across email clients and legacy parsers.
Switch cleanly between `encodeURIComponent` (Query Value) and `encodeURI` (Whole URL).
Converts accented characters, non-Latin scripts, and emojis into valid UTF-8 byte escapes.
Encodes every character immediately as you type without button clicks.
Nothing is uploaded to a remote server, so your data and files stay strictly on your device.
No account registration, no watermarks, and no daily usage caps.
Responsive layouts and comfortable touch controls that fit phones, tablets, and desktops.