URL Encoder/Decoder
encodeURIComponent is for query values; encodeURI is for full URLs. + is treated as space when decoding.
How to Use
Supports encodeURIComponent, decodeURIComponent, encodeURI, decodeURI, and Query ↔ JSON conversion.
Input on the left, live output on the right. Use Swap direction to toggle encode/decode modes.
FAQ
- What's the difference between encodeURIComponent and encodeURI?
- encodeURIComponent encodes special characters like ? & = for a single value; encodeURI keeps URL structure for full links.
- How is + handled in query strings?
- In application/x-www-form-urlencoded, + means space. Param decoding converts + to spaces.