About This Tool

What is URL エンコーダー / デコーダー?

A tool for encoding and decoding URL strings. URL encoding is essential when web addresses contain special characters, spaces, or non-ASCII characters like CJK text. It ensures safe transmission of query parameters in web requests.

How to Use

  1. Enter the string you want to encode or decode in the input area.
  2. Click 'Encode' to convert special characters to percent-encoding (%XX).
  3. Click 'Decode' to restore encoded strings to their original characters.
  4. Copy the result for use in your project.

Key Features

  • Standard URL encoding based on encodeURIComponent
  • Full support for non-ASCII characters including CJK
  • Bidirectional encode/decode conversion
  • Real-time result display

Tips

  • Special characters like &, =, ?, and # must be encoded in URLs to work as intended.
  • Spaces are converted to %20 or + during URL encoding.
  • Always encode user input in query parameters when making API calls.

URL エンコーダー / デコーダー

URL 文字列をエンコードまたはデコードします


Frequently Asked Questions

encodeURI()とencodeURIComponent()の違いは何ですか?

encodeURI()はURI全体をエンコードしますが、:、/、?、#などの特殊文字はそのまま残します。encodeURIComponent()はそれらの文字も含めてすべてをエンコードするため、個々のクエリパラメータ値のエンコードに適しています。

スペースが%20と+で表示されることがあるのはなぜですか?

%20はURLにおけるスペースの標準的なパーセントエンコーディングです。+記号はapplication/x-www-form-urlencoded形式(HTMLフォーム送信)でのみ使用されます。どちらもスペースを表しますが、URLでは%20がより普遍的に正確です。

URLに韓国語や日本語などの非英語文字をエンコードする必要がありますか?

はい。非ASCII文字は安全な送信のためにURLエンコードが必要です。最新のブラウザは読みやすさのためにアドレスバーにデコードされた文字を表示しますが、実際のHTTPリクエストではエンコードされた形式が使用されます。


Related Tools