1. Home
  2. Developer tools
  3. JSON Formatter

JSON Formatter

Paste JSON to format it, validate it with precise error locations, repair common mistakes, minify it or sort keys.

Free, no sign-up. Runs in your browser: nothing is uploaded.

How to use JSON Formatter

  1. Paste or open your JSON.
  2. Choose an indentation, or minify. Errors show the exact line and column.
  3. Copy the result or download it.

Features

  • Line and column of the first error
  • One-click repair of trailing commas, comments and quotes
  • 2 or 4 spaces, tabs or minified
  • Sort keys
  • Collapsible tree view

Supported formats

You can open

  • JSON
  • JSON5-like

You get

  • JSON

Private by design

Your files are opened and processed by your browser on this device. They are never uploaded to openWorkstand or anyone else, so the JSON Formatter is safe for contracts, IDs, photos and work documents, and it keeps working offline once the page has loaded. How local processing works

When to use the JSON Formatter

  • Read a messy API response.
  • Fix an invalid JSON config file.
  • Minify JSON for production.

Examples

Repair a config file with comments and trailing commas

Strict JSON allows neither, so validation stops at the comment on line 2, column 3. “Try to repair” removes the comment and trailing comma, quotes the key and converts single quotes:

Input
{
  // settings for the app
  name: 'openWorkstand',
  "tags": ["pdf", "image",],
}
Result
{
  "name": "openWorkstand",
  "tags": [
    "pdf",
    "image"
  ]
}

Minify before sending

Choose “Minify” to remove all spaces and line breaks, for example to paste JSON into an environment variable or a URL parameter.

Troubleshooting

The file does not open

Check that it is one of the supported formats above and opens in another app. Damaged files and password-protected PDFs cannot be read until they are repaired or unlocked.

It is slow or stops on a very large file

Everything runs on your device, so speed depends on its memory. Close other tabs, use a computer rather than a phone, or split the file into smaller parts first.

The download did not start

Look for your browser’s download bar or icon. Some browsers ask once before a site may download files; allow it and click the button again.

Frequently asked questions

Why is my JSON invalid?

Common causes are trailing commas, single quotes, unquoted keys and comments, none of which JSON allows. Try the Repair button.

Is my data uploaded anywhere?

No. This tool runs entirely in your browser. Nothing you type or open is sent to a server, so it is safe for private and work data, and it keeps working offline once the page has loaded.

Step-by-step guides

Keep working with the result

After you download, choose “Save to Workstand” to keep the result in a folder on your computer, attach it to a project and create a follow-up task. It is saved by your browser, not uploaded.