URLコンポーネントのエンコードとデコードを行います。特殊文字を%XX形式に変換したり、元に戻したりします。
URLエンコードの使い方
テキストを入力してください。
エンコードまたはデコードを選択してください。
変換結果をコピーしてください。
URLs are only allowed to contain a limited set of characters, so anything outside that set, spaces, accented letters, and reserved symbols like & ? / =, has to be escaped. Percent-encoding replaces each such byte with a percent sign and its two-digit hexadecimal value, so a space becomes %20 and an ampersand becomes %26.
This tool encodes text and URLs to percent-encoded form and decodes them back. It is built on the browser's standard encodeURIComponent and encodeURI functions, so the output matches exactly what your own JavaScript would produce, and it is UTF-8 safe for international text.
Encoding and decoding run entirely in your browser, so nothing you paste is sent to a server, which is reassuring when a URL contains tokens or query parameters you would rather not share.
The scope toggle matters. Component mode (encodeURIComponent) escapes reserved characters like & = ? / and is what you want for a single query-string value or path segment. Full-URL mode (encodeURI) leaves the structural characters intact so a complete URL stays usable.
A common mistake is encoding an entire URL with component mode, which escapes the :// and ? and breaks the link. Another is double-encoding, where an already-encoded string is encoded again and %20 turns into %2520. When in doubt, decode first to see the raw value.
There is also a historical quirk in query strings: form submissions encode a space as a plus sign, while percent-encoding uses %20. Both are seen in the wild, so decoders generally accept either.
よくある質問
URLで使用できない特殊文字(スペース、日本語など)を%XXの16進数形式に変換することです。例えばスペースは%20になります。
encodeURIはURL全体をエンコードし、URLの構造文字(:、/、?など)は変換しません。encodeURIComponentはURLの一部(クエリパラメーターの値など)をエンコードし、これらの文字も変換します。
このツールを埋め込む
このツールをご自身のウェブサイトに追加できます。下のコードをコピーしてください。内容は自動的に最新の状態に保たれます。
<iframe src="https://monu.tools/embed/ja/url-encoder" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>関連ツール
テキストや画像などのデータをBase64形式にエンコードしたり、デコードしたりします。すべてブラウザ内で処理されます。
JSON Webトークンをデコードしてヘッダーとペイロードを検査します。有効期限と発行時刻を人間が読める形式で表示します。すべてブラウザ内で実行されます。トークンはアップロードされません。
MD5、SHA-1、SHA-256、SHA-512でテキストのハッシュを生成します。すべてブラウザ内で処理されます。
SHA-1・SHA-256・SHA-384・SHA-512を使用してメッセージとシークレットキーのHMACをブラウザ内で生成します。