コンテンツへスキップ

URL エンコード / デコード

encodeURIComponent と decodeURIComponent のヘルパー。


About this tool

URL で安全に使うためのパーセントエンコード、またはエンコード文字列の可読化ができます。クエリにスペースや特殊文字があるときに必須です。

Why use it

  • エンコードとデコードを双方向で一つのツールに。
  • 変な文字を含むリンクの破損を防ぎます。
  • ローカルで即時結果 — データは送信されません。

Common use cases

  • スペースや記号を含むクエリ文字列を組み立てる。
  • 誰かから送られたエンコード済みリンクを読む。
  • URL パラメータ用に検索語を準備する。

Tips

  • URL 全体ではなく、各パラメータ値をエンコードしてください。
  • スペースは %20 になります(一部のクエリでは + も使われます)。
使い方
  1. 文字列を貼り付け。
  2. エンコードまたはデコード。
  3. 結果をコピー。
よくある質問
When do I need to URL-encode text?
Whenever a value with spaces or special characters goes into a query string or link.
Can I decode an encoded URL?
Yes, paste a percent-encoded string to turn it back into readable text.
Is my data uploaded?
No. Encoding and decoding are done locally in your browser.
What is the difference from Base64?
URL encoding escapes unsafe characters as %XX; Base64 re-encodes all data into an ASCII alphabet.
Does it handle Unicode characters?
Yes, characters are encoded as UTF-8 percent sequences.
Why are spaces shown as %20 or +?
Both represent a space; %20 is standard in paths while + is common in query strings.