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

URLを即座にエンコードおよびデコードします。特殊文字をパーセントエンコード形式に変換し、その逆も行います。完全なURLとコンポーネントの両方のエンコーディングをサポート。100%クライアントサイドで、サーバーにデータを送信しません。

入力文字数: 0 出力文字数: 0

クイック例

URLエンコーダー/デコーダーについて

URLエンコーディングは、インターネット上で送信可能な形式に文字を変換します。スペース、引用符、非ASCII文字などの特殊文字は、パーセントエンコードされたシーケンス(例:スペースは%20)に置き換えられます。このツールは、URL構造を保持する完全なURLエンコーディング(encodeURI)と、スラッシュやコロンを含むすべての特殊文字をエンコードするコンポーネントエンコーディング(encodeURIComponent)の両方をサポートしています。

機能

How to Use

  1. Select the mode: "Encode" to convert text to URL-encoded format, or "Decode" to convert URL-encoded text back to plain text
  2. Choose the encoding type: "Full URL" preserves URL structure characters (: / ? #), while "URL Component" encodes all special characters
  3. Paste your text or URL into the input field
  4. Click the "Process" button to encode or decode your input instantly
  5. Use the "Copy" button to copy the result to your clipboard, or "Swap" to exchange input and output
  6. Try the Quick Examples buttons below the output to see common encoding/decoding scenarios in action

Common Use Cases

よくある質問

URLエンコーディングとは何ですか?

URLエンコーディング(パーセントエンコーディングとも呼ばれます)は、Uniform Resource Locator(URI)で情報をエンコードする仕組みです。安全でないASCII文字を「%」に続く2桁の16進数で置き換えます。例えば、スペースは%20になります。

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

encodeURIは完全なURLをエンコードしますが、URL構造内で有効な文字(: / ? #など)は保持します。encodeURIComponentはすべての特殊文字をエンコードするため、クエリパラメータの値に適しています。完全なURLにはencodeURIを、URLコンポーネントにはencodeURIComponentを使用してください。

URLエンコーディングはいつ使用すべきですか?

データにスペース、非ASCII文字、& = ? /などの予約文字など、URLに含める必要がある特殊文字が含まれている場合にURLエンコーディングを使用してください。これによりURLが有効になり、ブラウザとサーバーによって正しく解析されることが保証されます。

このツールは機密データで安全に使用できますか?

はい、すべての処理はブラウザ内で完全に行われます。データはサーバーに送信されないため、APIキー、トークン、プライベートURLなどの機密情報にも完全に安全です。

Can I encode Unicode and non-ASCII characters?

Yes, this tool fully supports Unicode and all non-ASCII characters including emoji, Chinese characters, Arabic script, Cyrillic, and more. These characters are encoded using UTF-8 percent-encoding, which is the standard for modern web applications.

Why does my encoded URL look different after encoding?

URL encoding replaces unsafe characters with percent-encoded sequences. For example, spaces become %20, & becomes %26, and non-ASCII characters become multi-byte sequences like %E4%B8%AD for Chinese characters. This is normal and expected — the encoded URL is still valid and functional.

Can I decode a partially encoded URL?

Yes, the decoder will process any percent-encoded sequences it finds and leave other characters unchanged. However, if the URL contains malformed encoding (like an incomplete % sequence), the tool will show an error. Make sure your input is valid URL-encoded text.

What is the maximum input size?

There is no artificial limit imposed by the tool. The practical limit depends on your browser's memory and JavaScript string handling capabilities. Most modern browsers can handle inputs of several megabytes without issues. For extremely large datasets, consider processing in chunks.

Related Tools