URL Encoder

Help

Overview

The URL encode/decode tool is an online tool for converting characters that cannot be used in URLs to %XX format (encoding), or performing the reverse conversion (decoding). It supports two JavaScript methods: encodeURI and encodeURIComponent.

How to Use

  1. Enter the string you want to convert in String to convert.
  2. Select Encode or Decode from the Mode field.
  3. When Convert all URL symbols (e.g. / and ?) as well is on, the behavior is equivalent to encodeURIComponent (all symbols encoded); when off, it is equivalent to encodeURI (URL structural characters preserved).
  4. Click the "Convert" button.

Specifications & Glossary

  • encodeURI: Does not encode characters that are valid in a URL (scheme http://, path separator /, query characters ?, =, &, etc.). Use when passing the entire URL.
  • encodeURIComponent: Encodes all characters except A-Z a-z 0-9 - _ . ! ~ * ' ( ). Use when passing a part of a URL, such as a query parameter value.
  • Percent encoding: Each character is encoded in UTF-8, and each byte is represented as %XX (where XX is a hexadecimal number), for example: "あ" → %E3%81%82.
  • Decoding: Supports decodeURI and decodeURIComponent to restore encoded strings back to their original text.
  • Difference between encodeURI and encodeURIComponent: encodeURI does not encode URL structural characters such as :, /, ?, and #, while encodeURIComponent encodes all of them.

Use Cases

  • Including Japanese or special characters in API request query parameters.
  • Converting form data to a URL-safe format.
  • Decoding the content of encoded URLs displayed in the browser address bar.

URL Encode / Decode Tool

URL Input

Result

1