Skip to content
SentrueFile

JSON Workbench

Format, validate and repair JSON, compare and query it, convert it to and from YAML, CSV and XML, or turn it into code.

  1. 1Select
  2. 2Configure
  3. 3Process
  4. 4Download

Your JSON is processed in your browser and never uploaded.

Accepts JSON, YAML, CSV, XMLPaste text or open a file up to 20 MB
Indent

Result

Everything happens in your browser - your data is never sent anywhere.

What developers use it for

Most JSON jobs are small and frequent. The workbench keeps them in one tab, without pasting private data into an online service.

  • Reading an API response. Paste a minified response, format it, and fold it open in the tree view to find the field you need.
  • Fixing a config file. See the exact line and column of a syntax error, or let Repair remove the trailing comma that broke the deploy.
  • Spotting what changed. Compare yesterday's and today's response to see every added, removed and changed field by path.
  • Starting a new integration. Turn a sample response into TypeScript, Python, Go, C# or Java types, or a JSON Schema for validation.

Tips for working with JSON

A few habits save time when data comes from many sources.

  • Validate before you convert. A conversion is only as good as its input. Fix syntax errors first; the status line shows where they are.
  • Use a representative sample. Generated types and schemas follow the sample: include items where optional fields are missing and nullable fields are null.
  • Flatten for spreadsheets. CSV has no nesting, so nested objects become dotted columns such as address.city; arrays are written as JSON text in one cell.
  • Keep secrets out of shared tools. Tokens and keys often sit inside JSON. Working in your browser means they don't end up in someone else's logs.

How to use the JSON Workbench

  1. Paste your JSON, drop a file onto the box, or open one. It's checked as you type, with the line and column of any error.
  2. Choose what to do: format, tree view, compare, JSONPath, schema, convert or code.
  3. Adjust the options - indent, sorting, delimiter, language - and the result updates straight away.
  4. Copy the result or download it as a file.

How your files stay private

The workbench runs entirely in your browser: what you paste or open is read, checked and converted in your device's memory. The page can connect only to this site and to Google Analytics, which counts visits and never receives your data. YAML support is a small file loaded from this site the first time you use it. Nothing is saved: closing the tab clears everything.

Limits

  • Files up to 20 MB; very large documents can be slow on older phones
  • JSONPath supports the common syntax - children, wildcards, .., indexes, slices and filters with comparisons - but not functions
  • Arrays are compared position by position, so an item inserted near the start shows as many changes
  • Generated code describes the shape of your sample; check optional and nullable fields against your real data

Questions

Is my JSON uploaded?

No. Everything happens in your browser on your own device, so API responses, configuration files and customer data never leave it.

Can it fix broken JSON?

Often, yes. Repair removes comments and trailing commas, changes single quotes to double quotes, puts quotes around keys, turns Python's True, False and None into JSON, adds missing commas and closes unclosed brackets - and lists what it changed.

Does it keep very large numbers exact?

Yes. Integers too big for JavaScript, such as 64-bit IDs, are kept exactly as written when you format, minify or compare, instead of being rounded.

Which JSONPath syntax is supported?

Dot and bracket children ($.a.b, $['a']), wildcards (*), recursive descent (..), indexes including negative ones, slices ([0:5]), lists ([0,2]) and filters such as [?(@.price < 10 && @.inStock)]. Functions like length() aren't supported.

How is XML mapped to JSON?

Elements become keys, repeated elements become arrays, attributes become keys starting with @, and an element's own text sits under #text. The same rules are used in both directions, so a round trip keeps the structure.