Skip to content
MewixMewix

Query string parser

Paste a query or full URL to get a JSON object of parameters, or paste JSON to emit an encoded query string.

Updated by the Mewix team

Parse tracking links and API URLs

In Parse query → JSON mode, paste either the query portion (utm_source=email&id=42) or a full URL. If a ? is present, everything after it is fed to URLSearchParams and converted to a JSON object for easy reading.

Build from a JSON object

Build JSON → query expects a JSON object with string values. Keys become parameter names; the tool outputs the encoded query string without a leading question mark — add that when you attach it to a path.

Questions

How are duplicate keys handled?

URLSearchParams keeps one entry per name when converted with Object.fromEntries — later duplicates can overwrite earlier ones. Split complex multi-value params manually if you rely on repeats.

Where do I percent-encode a single value?

Use the URL encode and decode tool for one-off component encoding before you drop it into JSON here.