コンテンツへスキップ
uencoder

URL エンコーダー

Percent-encode text for safe use in URLs。無料、プライベート、100%クライアントサイド。

例を試す:
Local only

最近の履歴

履歴はまだありません

使い方

  1. Paste the text or URL into the input box.
  2. Choose component or full URL mode.
  3. Copy the percent-encoded result.

このツールを使うタスク

オブジェクトから URL クエリ文字列を構築する
JavaScript オブジェクトから適切にエンコードされたクエリ文字列を構築します。配列、ネストしたオブジェクト、特殊文字を正しく扱います。
タスク
バイナリデータを JSON 安全な文字列にエンコードする
生のバイト列(画像、暗号化されたデータ、ファイルの内容)を、JSON 構造を壊さずにフィールドへ埋め込める Base64 文字列に変換します。
タスク
URL クエリ文字列内で安全に使えるようテキストをエンコードする
任意のテキスト(スペース、アンパサンド、Unicode、等号を含む)を、URL の「?key=」の直後に置いてもパースが壊れない値に変換します。
タスク
URL を構成要素に分解し、部品から URL を構築する
URL をプロトコル、ホスト、パス、クエリ、フラグメントに分解し、逆に個々の構成要素から安全に URL を組み立てます。
タスク
URL クエリ文字列をパースする
クエリ文字列は、URL の「?」以降でキーと値のペアを渡します。パース、エンコード、配列・ネストしたオブジェクト・特殊文字の扱いを学びましょう。
タスク
IoT メッセージングに MQTT トピック構造を使う
MQTT トピックはスラッシュ区切りの階層とワイルドカードで購読を制御します。トピック設計、QoS レベル、保持メッセージを学びましょう。
タスク

このツールを使うパイプライン

よくある質問

Why percent-encode a URL?
Certain characters such as spaces and '&' have special meaning in URLs. Percent-encoding makes them safe to transmit without breaking the URL structure.
What is the difference between component and full URL modes?
Component mode encodes every reserved character (like encodeURIComponent), while full URL mode preserves URL structure such as '://', '?', '#', and '&', encoding only spaces and truly unsafe characters.
How are spaces encoded?
Spaces are encoded as %20 (not '+'). The + encoding is specific to application/x-www-form-urlencoded in HTML forms; %20 is the correct general-purpose encoding for URL paths and query parameters.
Which characters are left unencoded?
Unreserved characters A-Z, a-z, 0-9, '-', '.', '_', and '~' are never encoded. In full URL mode, reserved characters like ':', '/', '?', '&', '=' are also preserved.
How are multibyte characters handled?
Characters are encoded to bytes using the selected charset (UTF-8 by default), then each byte is percent-encoded. '你好' becomes %E4%BD%A0%E5%A5%BD in UTF-8.
データはどこかにアップロードされますか?
いいえ。すべてのエンコードはブラウザ内でローカルに行われ、サーバー往復はありません。

関連ツール