DevTulz Online

Query Parameters to JSON

Paste a full URL or a query string to extract and convert its parameters into a JSON object.


What are Query Parameters?

URL query parameters are key-value pairs appended to a URL after a ? character, separated by & for multiple parameters. For example, ?name=Alice&age=30&role=admin encodes three parameters. Parsing these manually can be tedious, especially for long URLs with many encoded parameters. This tool converts a URL query string (with or without the ? prefix and full URL) into a formatted JSON object, making it easy to inspect individual parameters, debug API calls, and understand what data is being passed.

How to Use

  1. Paste a full URL or just the query string (starting with ? or without) into the input box.

  2. The tool parses all parameters and displays them as a formatted JSON object.

  3. URL-encoded values (like %20 for space) are automatically decoded.

  4. Copy the JSON output for use in debugging or documentation.

Need to parse the full URL? Try our URL Parser →

Frequently Asked Questions

What is URL encoding in query parameters? Special characters in query parameter values must be percent-encoded to avoid ambiguity. A space becomes %20 or +, & becomes %26, = becomes %3D. This tool automatically decodes these back to their original characters.

How are repeated keys handled? When the same key appears multiple times (e.g. tag=js&tag=python), it's represented as an array in the JSON output: {"tag": ["js", "python"]}. This is the standard convention for multi-value parameters.

Can I convert the JSON back to query parameters? This tool converts in one direction — query string to JSON. To build query strings from objects, see the UTM Builder or manually construct the URL with JavaScript's URLSearchParams API.

Keywords: query parameters to JSON, URL params to JSON, parse query string, URL query string converter, query string parser online