Query String Parser Online
Paste a URL or query string and instantly see every parameter broken down into key-value pairs. This tool runs client-side — no data is sent to any server.
URL Parser
Parse and inspect URL components. View protocol, host, path, query parameters, and hash.
What is a query string?
A query string is the portion of a URL that follows the question mark (?). It contains key-value pairs separated by ampersands (&), such as ?page=2&sort=name&order=asc. Query strings pass data to web servers, configure page state, and carry tracking parameters like UTM codes for analytics.
// JavaScript — parse query string parameters
const url = new URL("https://example.com/search?q=hello&page=2&sort=date");
const params = Object.fromEntries(url.searchParams);
console.log(params); // { q: "hello", page: "2", sort: "date" }
// Build query string from object
const qs = new URLSearchParams({ q: "test", page: "1" }).toString();
console.log(qs); // "q=test&page=1"
# Python — parse query strings
from urllib.parse import parse_qs, urlencode
params = parse_qs("q=hello&page=2")
print(params) # {"q": ["hello"], "page": ["2"]}Common use cases
Developers parse query strings when debugging API requests, analyzing tracking parameters in marketing URLs, extracting search filters from browser address bars, and migrating URL structures during site redesigns. The parser handles URL-encoded characters (%20 for spaces), array parameters (key[]=value), and duplicate keys automatically.
Frequently Asked Questions
How are special characters handled in query strings?
Special characters are percent-encoded in query strings (e.g., space becomes %20 or +, & becomes %26). The parser automatically decodes these so you see the original values.
Can query strings contain arrays?
Yes. Common patterns include repeated keys (color=red&color=blue), bracket notation (color[]=red&color[]=blue), and indexed brackets (color[0]=red&color[1]=blue). The parser recognizes all of these formats.
Related tools
Related Inspect Tools
HTTP Status Codes
Complete HTTP status code reference — 1xx, 2xx, 3xx, 4xx, 5xx with detailed explanations and use cases
Date Format Tester
Test date format patterns for strftime, date-fns, Moment.js, Go, and Java with live preview and token reference
Dockerfile Validator
Validate and lint Dockerfiles for syntax errors, security issues, best practices, and layer optimization
Kubernetes YAML Validator
Validate Kubernetes manifests for syntax, required fields, best practices, security, and resource limits