Simple online tools for developers, networking, text and conversions.

Developer Tools

JSON to Form Data

Convert JSON into key=value form-data style lines for requests and testing.

Tool

Use this JSON to Form Data tool to turn JSON objects into form-data style key-value pairs. It is useful for API testing, debugging request payloads, converting simple objects into request body fields, and preparing flat key-value input for tools that expect form-data or x-www-form-urlencoded-like structures. Nested objects use dot notation and arrays use indexed paths.

About this tool

Use this JSON to Form Data tool to turn JSON objects into form-data style key-value pairs. It is useful for API testing, debugging request payloads, converting simple objects into request body fields, and preparing flat key-value input for tools that expect form-data or x-www-form-urlencoded-like structures. Nested objects use dot notation and arrays use indexed paths.

Use json to form data when you need a fast browser-based result without extra setup. It works well for quick checks, one-off tasks, and routine formatting or calculation work.

Learn more

Why use this tool

How to use

  1. Paste a valid JSON object into the input box
  2. Click Run Tool to convert it into form-data style lines
  3. Review the flat key=value output
  4. Copy the result into your request tool, notes, or test case
  5. If needed, adjust nested or array fields before reusing the output

Examples

Example

Input

{"name":"Anna","role":"admin"}

Output

name=Anna
role=admin

Useful for turning a small object into request-ready key-value lines.

Example

Input

{"user":{"id":7},"tags":["a","b"]}

Output

user.id=7
tags[0]=a
tags[1]=b

Useful when nested JSON must be flattened for form-style request fields.

Common errors

The input is not a JSON object

Fix: Use a JSON object as the source input for the conversion.

The JSON input is invalid

Fix: Validate the JSON first before converting it.

The user expects actual multipart boundaries

Fix: This tool creates flat key=value lines, not a raw multipart/form-data HTTP body.

Nested arrays or objects create unexpected paths

Fix: Review the flattened keys and adjust the structure if your target API expects a different naming style.

Binary files are expected to be represented from JSON

Fix: This tool is for text-based JSON values, not real file uploads.

FAQ

What does JSON to Form Data do?

It converts a JSON object into flat key=value style lines suitable for request-style workflows.

Does it create real multipart/form-data bodies?

No. It creates readable key=value output, not raw multipart request boundaries.

How are nested objects represented?

Nested objects use dot notation such as user.id.

How are arrays represented?

Arrays use indexed keys such as tags[0] and tags[1].

What is the difference between JSON to Form Data and JSON Flatten?

Form Data focuses on key=value request-style output, while Flatten returns a flat JSON object.

Use cases

Related tools