Skip to main content
Convert2JSON Tools

JSON Transformer

Reshape a JSON document by stacking simple, safe operations — query, prune, rename, flatten, sort — and watch the result build up.

Your data stays on your device

Input JSON

characters
0
lines
0
size
0 B

Operations (0)

No operations yet. Add one above — they run top to bottom.

Output JSON

characters
0
lines
0
size
0 B

About this tool

This transformer is deliberately declarative: instead of letting you paste JavaScript to run against your data — which would be a security risk — it gives you a menu of fixed operations you combine into a pipeline. Each one is a pure function, so nothing you enter is ever executed as code.

Operations run top to bottom, and you can reorder or remove any of them. A JSONPath query narrows the document to what you care about; then you keep or drop keys, rename them, flatten nested structures, sort arrays, remove duplicates or nulls, and coerce types — building the exact shape you need.

How to use this tool

  1. Paste your JSON, or load the sample to see a working pipeline.
  2. Add operations from the menu; each appears as a step you can configure.
  3. Reorder steps with the arrows, or remove any you do not need.
  4. Press Transform to apply the whole pipeline, then copy or download the output.

Key features

  • JSONPath queries with keys, indexes, wildcards and recursive descent
  • Keep, remove and rename keys across objects and arrays of objects
  • Flatten and unflatten with a configurable delimiter
  • Sort arrays by value or key, remove duplicates, drop nulls and empty strings
  • Convert between numeric strings and numbers, and change key or value case
  • A reorderable pipeline — no code is ever executed

Example

Drop a key and sort by score

InputJSON

[{"name":"Ada","score":91,"team":"a"},{"name":"Alan","score":88,"team":"b"}]

OutputJSON

[
  { "name": "Ada", "score": 91 },
  { "name": "Alan", "score": 88 }
]

Good to know

  • The JSONPath support is a practical subset (paths, indexes, wildcards, recursive descent); filter expressions and slices are not included.
  • Key operations act on top-level objects and arrays of objects; deeply targeted edits may need a JSONPath query first.

Frequently asked questions

Can I run my own JavaScript against the JSON?

No, and that is intentional. Arbitrary code would be a security risk. The transformer offers a fixed set of safe operations instead, so nothing you enter is executed.

What JSONPath syntax is supported?

Dot and bracket paths, array indexes (including negative), the * wildcard, and .. recursive descent by key. Filter expressions are not supported.

Is my data uploaded?

No. The whole pipeline runs in your browser tab.

Your data stays on your device

Your data is processed locally in your browser and is not uploaded to our server. This page keeps working after you go offline, because there is nothing to send.

Share this toolXLinkedInHacker News