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/uk/query-string-converter" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>

Пов'язані інструменти