⚡
usefultools.dev
?{}

Query Params to JSON

Parse URL query parameters into a clean JSON object. Useful for debugging URLs, APIs, and web forms.

Funciona 100% no seu navegador — o que você insere nunca é enviado nem armazenado nos nossos servidores.

Esta ferramenta ainda não está totalmente traduzida, por isso parte do texto continua em inglês. A ferramenta funciona da mesma forma em todos os idiomas.

Result:

Result will appear here...
⚡

Exemplos rápidos

Entradas típicas e os resultados que esta ferramenta gera.

Simple
?name=Alice&age=30
{ "name": "Alice", "age": "30" }
Decoded
q=hello%20world
{ "q": "hello world" }
Plus sign
a=1+2&b=
{ "a": "1 2", "b": "" }
Repeated key
?tag=a&tag=b
{ "tag": "b" }
📖

Visão geral

URL query strings can be difficult to read when they contain many parameters, encoded characters, or repeated keys. Converting them to JSON makes the structure immediately clear.

This tool takes the query string part of a URL, with or without the leading ?, and turns every key=value pair into a property of a formatted JSON object. Percent-encoded characters are decoded and every value is kept as a string.

Parsing uses the browser's built-in URLSearchParams API and runs 100% on your device. The query string you paste is never uploaded, which matters when it contains tokens, session IDs, or personal data.

Say a payment redirect lands on your callback page with ?status=success&order_id=1042&amount=19.99. Copy everything after the ? into the box, click Convert to JSON, and each parameter appears on its own line, ready to compare with the values your server expected.

Por que usar esta ferramenta?

  • Debug API request URLs by visualizing query parameters as JSON
  • Inspect redirect URLs and OAuth callback parameters
  • Analyze tracking parameters from marketing links
  • Extract form submission data encoded in URLs
⭐

Recursos

🔍

Query String Input

Accepts a bare query string with or without the leading ? character.

📦

Flat Key/Value JSON

Each parameter becomes one JSON property; if a key repeats, the last value is kept.

🔓

URL Decoding

Automatically decodes percent-encoded characters like %20 and %2F, and turns + into a space.

📋

Copy JSON

Copy the JSON output to clipboard with one click.

🔒

Runs Locally

Parsing happens entirely in your browser; nothing is sent to a server.

🛠️

Como usar

1

Paste the query string

Paste the part of the URL after the ? (the ? itself is optional) into the "Enter query string" box.

2

Convert it

Click Convert to JSON or press Enter. The parsed parameters appear as formatted JSON in the Result panel.

3

Copy and use

Click Copy to grab the JSON for use in code, documentation, or debugging.

🤔

Perguntas frequentes