URL Encoder / Decoder
Result
How to Use
Encode
- Paste a URL or any text into the left input box.
- Click Encode to convert it using
encodeURIComponent. - The encoded result will appear on the right. You can click the 📋 button to copy it.
Decode
- Paste a percent-encoded URL or text (e.g.
https%3A%2F%2Fexample.com). - Click Decode to convert it back to a readable form using
decodeURIComponent. - If the encoded string is invalid, an error message will be shown in the result area.
Technical notes
URL encoding and decoding rely on the native JavaScript functions
encodeURIComponent and decodeURIComponent. These functions follow
the URL encoding rules defined by web standards. If an invalid percent-encoded sequence is
detected, the tool shows an error message instead of returning incorrect output.
All encoding and decoding are done locally in your browser using standard JavaScript functions. No data is sent to any server.