Encode special characters with percent-encoding or decode an encoded URL back to plain text. Supports query strings and full URLs.
| Char | Encoded | Char | Encoded | Char | Encoded |
|---|---|---|---|---|---|
| space | %20 | ! | %21 | " | %22 |
| # | %23 | $ | %24 | % | %25 |
| & | %26 | ' | %27 | ( | %28 |
| ) | %29 | + | %2B | , | %2C |
| / | %2F | : | %3A | ; | %3B |
| = | %3D | ? | %3F | @ | %40 |
| £ | %C2%A3 | € | %E2%82%AC | © | %C2%A9 |
Implements RFC 3986 percent-encoding. The "component" option matches JavaScript's encodeURIComponent; the "whole URL" option matches encodeURI.
Decoding is non-strict – it handles both %20 and + for spaces.