メインコンテンツへスキップ

URLエンコード・デコード

クエリ文字列で安全に使用するためにURLをパーセントエンコードするか、エンコードされたURLをプレーンテキストに戻します。

Input
0 chars | 0 bytes
Encode
Output
0 chars | 0 bytes

Every character that carries special meaning in a URL — spaces, ampersands, equals signs, hash marks — must be percent-encoded before it can safely travel as part of a query string or path segment. Skip this step and browsers, servers, or intermediary proxies will misparse your URL, silently dropping parameters or returning 400 errors that are frustratingly hard to trace.

This tool is essential when building redirect links, constructing API query strings by hand, debugging OAuth callback URLs, or inspecting encoded parameters pasted from server logs. Paste a raw string to encode it for safe embedding, or paste a mangled URL from a log file and decode it back to readable form in one click.

URLをオンラインでエンコード・デコードする方法

  1. 1

    URLまたは文字列を貼り付ける

    プレーンなURLまたはパーセントエンコードされた文字列を入力パネルに貼り付けてください。

  2. 2

    エンコードまたはデコードを選択

    エンコードとデコードを切り替えてください。エンコードは安全でない文字を%XXシーケンスに変換します。デコードはその逆を行います。

  3. 3

    結果をコピー

    エンコードまたはデコードされた出力をコピーしてください。すべての処理はブラウザ内で実行されます — サーバーリクエストはありません。

How Percent-Encoding Works

RFC 3986 defines which characters are 'unreserved' in a URI — letters, digits, hyphens, underscores, tildes, and dots — and requires everything else to be encoded as a percent sign followed by two uppercase hex digits representing the byte value. A space becomes `%20`, an ampersand becomes `%26`, and a non-ASCII character like `é` is first UTF-8 encoded to two bytes (`0xC3 0xA9`) and then encoded as `%C3%A9`.

The older `application/x-www-form-urlencoded` scheme (used in HTML form posts) encodes spaces as `+` instead of `%20`, which is why decoding a `+` character requires context — in a query string value it is a space, but in a path segment it is a literal plus sign. This tool handles both conventions correctly.

FileCrank URLエンコーダー・デコーダーを使う理由

  • ✓ RFC 3986標準エンコードとフォームエンコード(+)規約をサポート。
  • ✓ フルURLモードはスキームとスラッシュを保持。コンポーネントモードはすべてをエンコード。
  • ✓ UnicodeおよびEmojiを含む非ASCII文字に対応。
  • ✓ 完全にブラウザ内で動作 — データはサーバーに送信されません。

機能と仕様

最大ファイルサイズ
最大100 MB
プライバシー
ファイルは約1時間後に削除されます
料金
無料、登録不要
処理方式
100%クライアントサイド
規格
RFC 3986 URL encoding
データはブラウザの外に出ません — すべての処理はローカルです。アカウントや登録不要。使用制限なしで無料。

よくある質問

URLエンコードとパーセントエンコードの違いは何ですか?

同じものです。「パーセントエンコード」はRFC 3986の正式名称です。「URLエンコード」は開発者が使う非公式な名称です。どちらも安全でない文字を%と2桁の16進数に置き換えることを指します。

スペースに%20と+のどちらを使うべきですか?

RFC 3986に従いURLパスセグメントやクエリ値をエンコードする場合は%20を使用してください。+はapplication/x-www-form-urlencodedフォームデータにのみ使用してください。ほとんどのAPIは%20を期待します。

このツールはURL全体をエンコードしますか、それともコンポーネントだけですか?

デフォルトでは、URLコンポーネントで安全でない各文字をエンコードします。スキーム(https://)を含む完全なURLを貼り付けた場合、コロンとスラッシュは保持されます。すべての予約文字をエンコードするにはコンポーネントモードを使用してください。

エンコードされたURLにスラッシュの代わりに%2Fが含まれているのはなぜですか?

フルパスセグメントをエンコードしています。値内のスラッシュは%2Fとしてエンコードする必要があります。スラッシュを保持したい場合は、コンポーネントモードではなく標準URLモードを使用してください。

URL Encoding vs. HTML Entity Encoding

URL encoding and HTML entity encoding solve different problems. Percent-encoding makes data safe for URI syntax, while HTML entities make characters safe for HTML markup. An ampersand in a URL query string needs `%26`; inside an HTML attribute it needs `&`. Using the wrong encoding in the wrong context is a common source of XSS vulnerabilities and broken links, so choosing the right tool for the right layer matters.

FileCrank URLエンコード・デコードはRFC 3986に従いプレーンテキストとパーセントエンコードされたURL文字列間で変換します。完全にブラウザ内で動作します。

Advertisement

Ad