Convert Form Data to JSON

Convert Form Data to JSON instantly transforms URL-encoded form strings like name=John&age=30 into a readable JSON object. It’s perfect for turning raw form submissions or query strings into structured data. You can decode URI components, interpret bracketed array keys, and choose between compact or pretty output. The tool updates live as you type and works entirely in your browser no upload, no waiting.

Paste your input above or import a file below.
No file chosen
Supported file types: .txt, .log, .ini, .json, .html, .htm, .css
Total keys: 0
Options
Decode URI Components
Parse Bracket Arrays
Pretty Output

How to Use:

  1. Paste your form data into the Input Form Data box or import a .txt, .log, or .ini file.
  2. In the Options section:
    • Toggle Decode URI Components to convert things like %20 into spaces.
    • Toggle Parse Bracket Arrays to support keys like colors[]=red&colors[]=blue.
    • Toggle Pretty Output to format the JSON with line breaks and indentation.
  3. View the live JSON result in the JSON Output box.
  4. Use Copy Output or Export to File to save your data.
  5. Click Clear All to reset the tool and start fresh.

What Convert Form Data to JSON can do:

This tool gives you a fast, readable version of any query string or form body. It’s ideal for debugging APIs, inspecting form submissions, or converting legacy data formats into JSON. You can handle both single-value and array-style keys, all with clean formatting. The output is structured, flexible, and updates live as you work making it easy to test changes in real time.

Example:

Before:

name=Jane+Smith&email=jane%40example.com&colors[]=red&colors[]=blue

With options:

  • Decode URI: On
  • Parse Arrays: On
  • Pretty Output: On

After:

{
"name": "Jane Smith",
"email": "[email protected]",
"colors": ["red", "blue"]
}

Common Use Cases:

Convert Form Data to JSON is perfect when working with HTTP POST data, converting URL query strings, or transforming logs from traditional form submissions. It’s lightweight, fast, and doesn’t require any setup just paste and go.

Useful Tools & Suggestions:

Before converting, URL decode JSON can be used to clean up any encoded characters in the form input. Then, once it’s in JSON format, Prettify JSON helps lay it out clearly so it’s easier to read and debug.