Dev

URL Query String Parser

Input

Paste a query string to parse into JSON.

You can include or omit the leading question mark.

Result

{
  "name": "John",
  "age": "30",
  "tags": [
    "react",
    "next"
  ],
  "lang": "en"
}

Frequently Asked Questions

What is a query string?
A query string is the part of a URL after the ? character, containing key=value pairs separated by &. Example: ?name=Alice&age=30&city=Seoul. Query strings pass data to the server (in GET requests) or to client-side JavaScript applications.
How are special characters in query strings handled?
Special characters must be percent-encoded. Space = %20 or +, & = %26, = = %3D, # = %23. This tool decodes them for display. When building query strings programmatically, always use encodeURIComponent on individual values to encode correctly.
What is the difference between GET and POST parameters?
GET parameters are in the URL query string — visible in the address bar, bookmarkable, and logged by servers. POST parameters are in the request body — not visible in the URL, not bookmarkable, and not logged by default. Use POST for sensitive data and large payloads; GET for idempotent queries.