🔗

Query String ↔ JSON Converter

Software · 1 inputs · Free

🔗

Query String ↔ JSON Converter

1 inputs

Parameters

What is this tool?

Query String ↔ JSON Converter helps developers with encoding, encryption and text processing. Converts a URL query string to JSON: percent-encoding and + signs are decoded and repeated keys become arrays. Enter a JSON object starting with { to go the other way and get an encoded query string.

📘 Common mistakes · Worked example
Query string, URL or JSON

Converts a URL query string to JSON: percent-encoding and + signs are decoded and repeated keys become arrays. Enter a JSON object starting with { to go the other way and get an encoded query string.

The result is not exact or binding and is for information only; it is not an official document and cannot be used in official procedures. Confirm it with the competent authority or a professional before acting; no liability is accepted for losses arising from its use.

Last reviewed: · Methodology and sources

How is it calculated?

Converts a URL query string to JSON: percent-encoding and + signs are decoded and repeated keys become arrays. Enter a JSON object starting with { to go the other way and get an encoded query string.

Inputs

ValueUnitExample
Query string, URL or JSON—https://example.com/search?q=hello+world&lang=tr&tag=a&tag=b&page=2

What is this tool?

Query String ↔ JSON Converter helps developers with encoding, encryption and text processing. Converts a URL query string to JSON: percent-encoding and + signs are decoded and repeated keys become arrays. Enter a JSON object starting with { to go the other way and get an encoded query string.

Common mistakes

  • Writing a percent sign without encoding it. In q=100%&x=1 the % is not followed by two hex digits, so the tool reports "Malformed percent-encoding: “100%”."; the correct form is 100%25.
  • Leaving a literal plus sign in a value. tel=+90555 is read as " 90555"; write %2B for a plus.
  • Trying to turn a nested object into a query string. For {"filter":{"a":1}} the tool answers "Nested objects or arrays cannot be converted to a query string: “filter”."; flatten the keys first.
  • Expecting bracketed names to expand into arrays or objects. tag[]=a and user[name]=x stay flat keys called "tag[]" and "user[name]"; that notation belongs to certain frameworks, not to the standard.
  • Pasting a URL that has no query string. For https://example.com/page the tool reports "The URL has no query string."
  • Assuming fields such as page arrive as numbers. Every value is a string; convert with Number() before comparing.

📘 Query String to JSON and Back: +, %20 and Repeated Keys →

Sources

Key terms

Query string, URL or JSON

Frequently Asked Questions

+Query String ↔ JSON Converter — how is it calculated?

Converts a URL query string to JSON: percent-encoding and + signs are decoded and repeated keys become arrays. Enter a JSON object starting with { to go the other way and get an encoded query string.

+Which values are required?

Query string, URL or JSON.

+Is my data stored?

No. All calculations run in your browser; the values you enter are never sent to or stored on a server. If you press “Save”, the calculation stays only in your own browser and you can delete it at any time.

+Is it free?

Yes, all tools are free and require no sign-up.

Similar tools

Popular Tools

🧮

Free Calculators in One Place

Tax, finance, health, math and more — 500+ tools, all in one place.

Choose your cookie preference to continue

Records the site needs to work (theme, language, favourites) stay in your browser.

This site is free and funded by ads.

With your consent, Google Analytics cookies measure visits and Google AdSense cookies are used to show ads; the data is processed on Google servers abroad.

If you reject, the site works just the same.

Cookie Policy · KVKK notice