URL encoder
Percent-encoding (URL encoding) makes arbitrary text safe to place inside a
URL by replacing reserved and non-ASCII characters with a % followed by two
hexadecimal digits. A space becomes %20, an ampersand %26, and the accented
é becomes %C3%A9. This encoder applies that transformation so you can build
query strings, share links, or pass values to an API without them breaking the URL
— all in your browser.
How it works
The tool uses the browser’s two built-in encoding functions:
- Component mode —
encodeURIComponenttreats the input as a single value and escapes the URL reserved characters too (: / ? & = # +and more). Use it for one query value or path segment. - Full-URL mode —
encodeURIescapes spaces and non-ASCII characters but leaves reserved separators intact, so a complete URL stays usable.
Both encode non-ASCII characters as their UTF-8 byte sequences, and both leave
the unreserved set (A–Z a–z 0–9 - _ . ! ~ * ' ( )) untouched.
Example
The value John & Jane? encoded in component mode becomes John%20%26%20Jane%3F:
the spaces are %20, the ampersand %26, and the question mark %3F. In full-URL
mode the same text becomes John%20&%20Jane? — the & and ? survive because
they are structural URL characters.
| Character | Encoded |
|---|---|
| (space) | %20 |
| & | %26 |
| = | %3D |
| ? | %3F |
| é | %C3%A9 |
Everything runs in your browser with built-in functions — nothing is uploaded. To reverse it, use the URL decoder.