Encode special characters for safe URL transmission or decode percent-encoded strings back to readable text. Supports both encodeURIComponent and encodeURI modes.
| Character | Encoded | Notes |
|---|---|---|
| Space | %20 or + | + only in form data mode |
| & | %26 | Parameter separator |
| = | %3D | Key-value separator |
| ? | %3F | Query string start |
| # | %23 | Fragment identifier |
| / | %2F | Path separator (encoded in component mode) |
| + | %2B | Literal plus sign |
| @ | %40 | Email/authority delimiter |
encodeURIComponent β Encodes everything except AβZ aβz 0β9 - _ . ! ~ * ' ( ). Use this for encoding individual query parameter values.
encodeURI β Encodes everything except characters allowed in a complete URI including / : @ # ? & = + $ ,. Use this for encoding a full URL while preserving its structure.
Form Data β Replaces spaces with + instead of %20, matching how HTML forms submit data via GET or POST.