FileToolBox

JSON formatter: validate, beautify, minify and escape JSON online

A wall of JSON from an API? Paste it and format it in one click; if it's invalid you're told the line and column, and small slips like single quotes or trailing commas can be fixed for you.

Runs locally; files are not uploaded

Indent

Features

  • Format with 2, 4 spaces or tabs; minify
  • Validation with line and column
  • Repairs single quotes, trailing commas, comments, unquoted keys
  • Sort keys for diffing
  • Escape and unescape as a string
  • Arrays of objects to CSV

Good for

  • Reading and debugging API responses
  • Checking config files
  • Turning JSON into a spreadsheet

How it works

  1. 1

    Paste JSON.

  2. 2

    Pick the indent, then format or minify.

  3. 3

    Copy the result or export CSV.

FAQ

Is my data uploaded?
Everything happens in your browser. Files are never uploaded anywhere and are gone when you close the page.
Why is it invalid?
Standard JSON needs double quotes, no trailing commas and no comments; tick the repair option to accept those.
How large can it be?
Several megabytes is fine.