⚡
usefultools.dev
?{}

Query Params to JSON

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

Fonctionne à 100 % dans votre navigateur — vos données ne sont jamais envoyées ni stockées sur nos serveurs.

Cet outil n'est pas encore entièrement traduit : une partie du texte est encore en anglais. L'outil lui-même fonctionne de la même façon dans toutes les langues.

Result:

Result will appear here...
⚡

Exemples rapides

Des entrées typiques et les résultats produits par cet outil.

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" }
📖

Présentation

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.

Pourquoi utiliser cet outil ?

  • 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
⭐

Fonctionnalités

🔍

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.

🛠️

Mode d'emploi

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.

🤔

Questions fréquentes