URL Encoder / Decoder

Result

How to Use

Encode

  1. Paste a URL or any text into the left input box.
  2. Click Encode to convert it using encodeURIComponent.
  3. The encoded result will appear on the right. You can click the 📋 button to copy it.

Decode

  1. Paste a percent-encoded URL or text (e.g. https%3A%2F%2Fexample.com).
  2. Click Decode to convert it back to a readable form using decodeURIComponent.
  3. 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.