Query Parser

Query Parser

URL query string parser online. Parse query parameters into a key-value table instantly. Export as JSON or CSV—free URL parameter extractor.

0 chars

URL or Query String

0 parameters found

Features

  • Parse URL query strings into key-value pairs
  • Paste full URLs or just query strings starting with ?
  • Display parameters in a sortable table
  • Export as JSON for code or CSV for spreadsheets
  • Handles arrays and multiple values
  • Automatic URL decoding for readability

Common Use Cases

  • Debug API request parameters
  • Analyze tracking URLs and UTM parameters
  • Extract form submission data
  • Inspect OAuth callback parameters
  • Convert query strings to JSON for APIs

URL Query String Parsing

Query strings are the portion of a URL after the ? symbol, containing key-value pairs separated by & characters.

Query string format:

https://example.com/api?key1=value1&key2=value2&key3=value3

Common patterns:

  • Simple pairs - ?name=John&age=25
  • Arrays - ?tags[]=red&tags[]=blue or ?tags=red&tags=blue
  • Nested - ?user[name]=John&user[age]=25
  • Empty values - ?flag=&key (key with no value)

Automatic decoding: Query values are URL-encoded. Our parser automatically decodes %20 (space), %21 (!), and other encoded characters for readability.

Use cases: Debug API calls, analyze marketing URLs (UTM parameters), inspect OAuth redirects, extract search filters.

Examples

Valid - Simple query string
?name=John&age=25&city=NYC

→ name: John
→ age: 25
→ city: NYC
Valid - URL-encoded values
?q=Hello%20World&lang=en

→ q: Hello World (decoded)
→ lang: en
Valid - Array parameters
?tags[]=javascript&tags[]=typescript

→ tags[]: [javascript, typescript]

Frequently Asked Questions

How do I handle array parameters in query strings?

Arrays are represented as repeated keys (?tag=red&tag=blue) or with brackets (?tag[]=red&tag[]=blue). Our parser detects both formats and groups them automatically. Export as JSON to see the array structure.

What if a query parameter has no value?

Parameters with no value (e.g., ?flag&key) are treated as boolean flags. The key exists but the value is empty. Some APIs use this for toggles like ?debug or ?verbose.

Can I parse query strings from POST requests?

Yes! While POST data is in the request body, it often uses application/x-www-form-urlencoded format, which is identical to query strings. Paste the body content (without the URL) to parse it.

How do I export query parameters as JSON?

Use the Export as JSON button. The output is a JSON object with key-value pairs. Arrays are represented as JSON arrays. This is useful for sending query data to APIs or storing it in databases.

What's the difference between & and ; in query strings?

The & (ampersand) is the standard separator (e.g., ?a=1&b=2). The ; (semicolon) is an alternative allowed by old W3C specs but rarely used. Modern URLs use & exclusively.