Encode tool

Query String to JSON

Convert URL query strings into JSON objects for debugging links and tracking parameters.

Use the tool

Common use cases

  • Encode values for URLs and HTML.
  • Decode copied tokens and payload snippets.
  • Inspect data without switching tools.

Example input

https://aijsonformat.com/?utm_source=google&utm_medium=organic&q=json&q=tools

Related tools

FAQ

Can I paste a full URL?

Yes. The tool extracts the query string from a full URL or accepts only the part after the question mark.

How are duplicate keys handled?

Duplicate keys become arrays so repeated parameters are preserved.

Does this decode percent encoding?

Yes. URLSearchParams decodes percent-encoded values.