Phân tích một chuỗi truy vấn URL thành JSON và dựng một chuỗi truy vấn từ JSON, trong trình duyệt của bạn.
Cách dùng Chuỗi truy vấn
Chọn một chiều: truy vấn sang JSON hoặc JSON sang truy vấn.
Dán một chuỗi truy vấn (có hoặc không có dấu ? ở đầu) hoặc một đối tượng JSON.
Sao chép kết quả, hoặc hoán đổi để chuyển lại.
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.
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.
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.
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.
Câu hỏi thường gặp
Một khóa xuất hiện nhiều hơn một lần, như tag=a&tag=b, trở thành một mảng trong JSON, và các mảng trong JSON mở rộng trở lại thành các tham số lặp lại.
Có. Khi chuyển sang JSON, mọi thứ trước dấu ? bị bỏ qua, nên bạn có thể dán toàn bộ URL.
Có. Các giá trị mã hóa phần trăm được giải mã khi phân tích và mã hóa lại khi dựng một chuỗi truy vấn.
Nhúng công cụ này
Thêm công cụ này vào trang web của riêng bạn. Sao chép đoạn mã bên dưới; nó tự động cập nhật.
<iframe src="https://monu.tools/embed/vi/query-string-converter" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>Công cụ liên quan
Tạo và ký JSON Web Token HS256 từ một payload và secret, hoàn toàn trong trình duyệt của bạn.
Tìm kiếm và tra cứu các mã trạng thái HTTP và ý nghĩa của chúng, từ 1xx đến 5xx.
Chuyển một tệp .env sang JSON và JSON trở lại .env, theo cả hai chiều, hoàn toàn trong trình duyệt của bạn.
Tạo một HMAC cho một thông điệp và khóa secret bằng SHA-1, SHA-256, SHA-384 hoặc SHA-512, trong trình duyệt của bạn.