Convert any text to a URL-safe percent-encoded string and back. Handles UTF-8 correctly, so Japanese, Chinese, and emoji survive the trip through query strings. Runs entirely in your browser — nothing is sent anywhere.
How it works
URLs can only safely contain a small set of characters (letters, digits, and -._~). Everything else — spaces, &, ?, #, non-ASCII text — must be percent-encoded: each byte becomes %XX. This tool uses the browser’s encodeURIComponent/decodeURIComponent, the same functions your JavaScript code uses, so results match what your app will send.
The two variants matter: encodeURIComponent escapes everything (correct for query values), while encodeURI leaves URL structure characters intact (correct for full URLs). This tool uses the component variant — the safe choice for building query strings.
Where you will meet it
- Query strings:
?q=AI+Forward&lang=ja— unencoded&or=inside a value corrupts the URL - API calls: dynamic values (names, addresses, free-text search) must be encoded before interpolation
- OAuth redirects and signed links: a mis-encoded URL breaks signatures
Pairs naturally with the Base64 encoder (Base64url is the other URL-safe encoding) and the JSON formatter when query results come back as JSON.