✳tools.stBrowse tools
◈ Processed on your device
▤

Group JSON records

Group records by a selected property without losing rows.

Free

Group records by a selected property without losing rows. Collect records with the same serialized property value into groups containing a key and items. Group order follows the first appearance of each value in the input array.

◈ Local processingFree

How to use

  1. Enter your text, values, or image.
  2. Adjust the options and run the tool.
  3. Copy or download your result.

Worked example

Example input

Input: [{"k":"A","n":1},{"k":"A","n":2}]
Group property: k

Example result

[
  {
    "key": "A",
    "items": [
      {
        "k": "A",
        "n": 1
      },
      {
        "k": "A",
        "n": 2
      }
    ]
  }
]

Limitations and details

Every item must be an object containing the chosen direct property; nested object key order can affect grouping.

Inputs and options

Input
Text
Group property
Text

Frequently asked questions

Is this tool free and private?

Yes. All 300 tools are free in this phase. Processing happens in your browser; your input and files are not sent to our servers.

Related tools