JSON to Query String — Free Online Tool

Convert a JSON object into a URL query string with bracket notation for nested objects and arrays, fully percent-encoded.. JSON to Query String is a free online tool from the ToolsRift Developer Tools collection. It runs entirely in your browser — nothing to install, no signup, and your data never leaves your device.

Loading JSON to Query String

How to use JSON to Query String

Paste a JSON object and the tool flattens it into an encoded query string, using bracket notation like items[0]=a for arrays and user[name]=x for nested objects.

Frequently asked questions

How are nested objects handled?

Keys are flattened with bracket notation, so { user: { id: 1 } } becomes user[id]=1, a convention many backends parse automatically.

How are arrays serialized?

Arrays use indexed brackets like tags[0]=a&tags[1]=b, preserving order when the query string is parsed back into a structure.

Are values encoded?

Yes — every key and value is percent-encoded so special characters remain valid within the resulting URL query string.

More Developer Tools

Duration Humanizer
Convert milliseconds or seconds into a readable duration like 1d 2h 3m 4s, and break it down across every time unit.
Timestamp Diff
Compute the difference between two dates or Unix timestamps in days, hours, minutes, seconds and a humanized string.
UUID v5 Generator
Generate deterministic RFC 4122 v5 UUIDs by SHA-1 hashing a name within a namespace (DNS, URL, OID, X.500 or custom).
HMAC Generator
Compute HMAC message authentication codes with SHA-1, SHA-256, SHA-384 or SHA-512 and a secret key, in hex or base64.
Color Contrast Checker
Check WCAG 2.1 contrast ratio between a foreground and background color, with AA and AAA pass/fail for text sizes.
CSS Clamp Generator
Generate a fluid CSS clamp() for responsive typography or spacing that scales linearly between two viewport widths.

← View all Developer Tools