URL Encoder and Decoder
Encode or decode URLs and query parameter values with encodeURIComponent.
结果
Results will appear here
Use Cases
- Encode query parameters
- Decode copied URL fragments
- Handle non-English URL text
How to Use
Use the workspace above to type, paste, choose, or drop content and get the result immediately. Files and text stay local in your browser by default.
FAQ
How is it different from encodeURI?
It uses encodeURIComponent, which is better for individual parameter values.
Why does decoding fail?
The input may contain an incomplete percent-encoded sequence.