Monu Tools

クエリ文字列 / JSON変換

URLクエリ文字列をJSONに解析するか、JSONからクエリ文字列を構築します。ブラウザ内で動作します。

クエリ文字列変換の使い方

  1. 01

    方向を選択します(クエリ→JSONまたはJSON→クエリ)。

  2. 02

    クエリ文字列(先頭の?あり・なし両対応)またはJSONオブジェクトを貼り付けます。

  3. 03

    結果をコピーするか、入れ替えて逆方向に変換します。

Parse and build query strings

A query string converter that turns the parameters in a URL into a readable JSON object, and builds a query string back from JSON. It decodes values, and treats repeated keys as arrays in both directions.

It runs locally in your browser, so the URLs you inspect, which can contain tokens or personal data, never leave your device.

What a query string is

A query string is the part of a URL after the question mark, like ?q=shoes&page=2, a list of key-value pairs that pass data to a page or API. They drive search results, filters, pagination and tracking.

Repeated keys and full URLs

When a key appears more than once, such as tag=a&tag=b, it becomes an array in the JSON so no values are lost, and a JSON array expands back into repeated parameters when you build the string.

You can paste a whole URL when converting to JSON: anything before the question mark is ignored, so you do not have to trim it first. This makes it quick to inspect the parameters of a link from your address bar.

Decoding and encoding

Percent-encoded values are decoded when parsing so you can read them, and encoded again when building a query string so the result is valid, which keeps spaces and special characters correct.

よくある質問

繰り返しパラメーターはどう処理されますか?

tag=a&tag=bのように複数回出現するキーはJSONで配列になり、JSON内の配列は繰り返しパラメーターに展開されます。

URLをそのまま貼り付けられますか?

はい。JSONへの変換時は?より前の部分は無視されるため、URLをそのまま貼り付けられます。

値はデコードされますか?

はい。パーセントエンコードされた値は解析時にデコードされ、クエリ文字列の構築時に再エンコードされます。

出典

このツールを埋め込む

このツールをご自身のウェブサイトに追加できます。下のコードをコピーしてください。内容は自動的に最新の状態に保たれます。

<iframe src="https://monu.tools/embed/ja/query-string-converter" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>

関連ツール