DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
HomeWeb / FrontendQuery String → JSON

About Query String → JSON

Query String → JSON preview - Web / Frontend tool

Turn ?a=1&b=foo into a flat JSON object. Part of the DevTools Surf developer suite. Browse more tools in the Web / Frontend collection.

Use Cases

  • Converting URL query parameters to JSON for API request bodies
  • Debugging OAuth callback URLs by parsing their query parameters
  • Extracting UTM tracking parameters from marketing URLs
  • Transforming search filter URLs into structured data for logging

Tips

  • Paste a full query string starting with ? or just key=value pairs
  • Nested bracket notation like a[b]=1 is parsed into objects
  • Use the JSON output to build request payloads in code

Fun Facts

  • Query strings were part of the original URL specification (RFC 1738, 1994) and are separated from the path by the '?' character, a convention unchanged for 30 years.
  • The maximum query string length varies by server: Apache defaults to 8,190 characters, while Nginx allows up to 4,096 by default.
  • The application/x-www-form-urlencoded content type, used for query strings, was defined in the HTML 2.0 spec (RFC 1866) in 1995.

FAQ

How does it handle nested keys?
Bracket notation (`user[name]`) becomes nested JSON. Dot notation in the query (`user.name`) can also become nested via toggle.
What about arrays?
Repeated keys (`tag=a&tag=b`) become an array. Bracket arrays (`tag[]=a`) also work. Single values don't become arrays by default.
Does it URL-decode values?
Yes automatically. %20 becomes space, %3D becomes =, etc. Toggle off only if you want raw percent-encoded strings.
What if the same key appears with and without brackets?
Ambiguous — the tool favors the bracket-array interpretation. Normalize your query strings on the server side to avoid this.

Related Web / Frontend Tools

Meta Tags / OG PreviewerTailwind → CSSHTML → React JSXHTML → MarkdownSVG → React ComponentCSS Unit Converterrobots.txt ValidatorSitemap XML Validator
New · Flagshipsimple REST client

REST Handler — Collections, env vars, history, cURL converter

Send requests, save collections (nested), swap environments, and convert between cURL / Collection JSON / REST Handler YAML.

Open

Popular tools

The most-used tools on DevToolsSurf, one click away.

Encoding & crypto

  • Base64 Encode
  • Base64 Decode
  • URL Encoder
  • URL Decoder
  • Hash Generator
  • JWT Decoder
  • JWT Encoder
  • UUID Generator
  • ULID Generator
  • Password Generator
  • Bcrypt Hash Tester

Converters

  • CSV to JSON
  • JSON to CSV
  • XML to JSON
  • JSON to XML
  • HTML → Markdown
  • HTML → React JSX
  • cURL to Code
  • Collection JSON → cURL
  • Swagger to Collection JSON
  • JSON → Go Struct
  • JSON → TypeScript Types

JSON & YAML

  • JSON Formatter
  • JSON Validator
  • JSON Viewer
  • JSON Minifier
  • JSON Diff
  • JSONPath Tester
  • YAML Formatter
  • YAML to JSON
  • JSON to YAML

Text & regex

  • Regex Tester
  • Text Diff
  • Case Converter
  • Word Counter
  • Markdown Preview
  • Slug Generator
  • Lorem Ipsum Generator
  • Markdown → PDF

CSS & color

  • CSS Beautifier
  • Minify CSS
  • Color Converter
  • Gradient Generator
  • Contrast Checker
  • Color Palette Generator
  • Flexbox Playground
  • Tailwind → CSS

Generators

  • QR Code Generator
  • Mock Data Generator
  • Favicon Generator
  • .gitignore Builder
  • README.md Generator
  • Dockerfile Generator
  • Sitemap Generator

API & networking

  • REST Handler
  • HTTP Header Analyzer
  • IP Address Lookup
  • CIDR Calculator
  • User-Agent Parser
  • HTTP Status Reference
  • OpenAPI Viewer

Date & time

  • Timestamp Converter
  • Timezone Converter
  • Cron Expression Parser
  • Duration Calculator
  • Age Calculator
  • Date Format Converter

Images

  • Image Converter
  • Image Resizer (Batch)
  • SVG Optimizer
  • Base64 ↔ Image
  • WebP ↔ AVIF Converter
  • Image Compressor

PDF tools

  • PDF Merger
  • PDF Splitter
  • PDF Compressor
  • Markdown → PDF
  • EPUB → PDF
  • MOBI / AZW → PDF
  • DOCX → PDF
  • HTML → PDF

Resources

  • Community feed
  • Themes marketplace
  • Pricing & credits
  • Privacy policy
  • Terms of service
  • Sitemap
  • robots.txt

Your account

  • Sign in
  • Dashboard
  • Run history
  • My profile
  • Settings
DevTools Surf logo
DevTools Surf919+ tools

Fast · privacy-first · client-side · © 2026

Home·Feed·ThemesPricing·Sign inPrivacy·Sitemap Feedback