Convert Form Data to JSON
Generate a JSON object from URL-encoded HTTP form data. Runs entirely in your browser, so your data never leaves your device.
0 chars · 0 lines
Output
The result appears here as you type.
How to use Convert Form Data to JSON
- 1. Paste your form data. Paste the URL-encoded form data string, the kind you would find in a request body or a query string, with keys and values joined by equals signs and separated by ampersands.
- 2. Set unnesting and type parsing. Turn on Unnest a[b] and a.b keys to rebuild nested objects and arrays from bracket or dot notation, and Parse numbers and booleans to convert values like true or 5432 into their real JSON types.
- 3. Pick the output indent and copy. Choose 2 spaces, 4 spaces or tabs for the Indent setting, then copy the resulting JSON object and use it in your application code or API testing tool.
When to use Convert Form Data to JSON
Convert Form Data to JSON parses application/x-www-form-urlencoded data, the format traditional HTML forms and many legacy APIs use, into a proper JSON object, rebuilding nested keys along the way. Use Convert Form Data to JSON when you have this raw string and need structured data instead.
- Inspecting a request body captured from the network tab. You captured a form POST request in a browser's dev tools and want to see the submitted data as a readable JSON object instead of a raw urlencoded string.
- Migrating an endpoint from form data to JSON. You are updating an API to accept JSON instead of form-encoded bodies and want to see exactly what structure the old form submissions were sending.
- Debugging a webhook that sends urlencoded payloads. A third-party service sends webhook events as form-encoded data instead of JSON, and you want to convert a sample payload to inspect its actual shape.
- Reconstructing nested fields from a bracketed query string. A query string uses bracket notation for nested arrays and objects, and you want to see the equivalent JSON structure it represents.
Examples
Decode a query string
Input
user%5Bname%5D=Ada&user%5Btags%5D%5B0%5D=a&active=true
Output
{
"user": {
"name": "Ada",
"tags": [
"a"
]
},
"active": true
}About the Convert Form Data to JSON tool
Convert Form Data to JSON does its work locally, right in the browser. Generate a JSON object from URL-encoded HTTP form data. There is no upload step, no queue and no account, and your data never travels over the network.
It belongs to the JSON Tools collection on EditSafely, a set of 90 small, focused JSON utilities that share the same instant, private workspace.
You can shape the output with 3 settings, including Unnest a[b] and a.b keys, Parse numbers and booleans and Indent, and the result refreshes the moment you change one. A worked example further down the page shows exactly what the tool produces for a real input.
Running locally also makes the tool fast and dependable: results appear as you type or drop a file, there is no server outage that can take it down mid-task, and confidential data can be processed without a second thought.
Frequently asked questions
Is Convert Form Data to JSON free to use?
Yes, it is completely free. All 2,658 tools on EditSafely work without an account, a subscription or usage limits.
Is it safe to paste sensitive or confidential data?
Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.
How much text can I process at once?
There is no fixed limit. Because the work happens on your own device rather than on a shared server, the practical ceiling is your machine's memory, which comfortably handles inputs far larger than typical online tools allow.
Do I need to sign up or install anything?
No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.
How do I use the result?
The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.