Skip to main content
dubinity

Developer & Web

JSON Formatter

Format and indent JSON, or minify it, with exact error positions and big numbers kept as written.

  • Runs in your browser
  • Works on mobile
  • In: JSON
  • Out: JSON
Loading the tool…

Your files and text are processed on your own device, inside this page. Nothing is uploaded to Dubinity or stored, and closing the tab discards it. How privacy works

About JSON Formatter

Pretty-prints JSON with 2 spaces, 4 spaces or tabs, minifies it to one line, and can sort keys so two documents are easy to compare.

It uses its own parser rather than JSON.parse, for two reasons: errors come with a line, a column and a hint (trailing comma, single quotes, a missing comma), and long numeric IDs keep their exact digits instead of being rounded to 17 significant figures.

The document never leaves your browser.

How to use it

  1. 1Paste your JSON into the box
  2. 2Choose the indentation, or minify
  3. 3Copy or download the formatted result

Questions

Was this tool helpful?

All developer tools
  • JSON Validator

    Check whether JSON is valid and see the exact line, column and reason when it is not.

    JSON
    Runs in your browserOpen tool
  • JSON Viewer

    Explore large JSON as a collapsible tree: expand what you need, search keys and values, copy any path.

    JSON
    Runs in your browserOpen tool
  • JSON to YAML Converter

    Convert JSON into YAML, keeping long integer IDs exact instead of rounding them.

    JSON
    Runs in your browserOpen tool
  • JSON to CSV Converter

    Turn an array of JSON objects into CSV for Excel or Google Sheets, flattening nested fields into columns.

    JSON
    Runs in your browserOpen tool
  • Password Generator

    Create strong random passwords with the character rules a site demands, and see the real entropy.

    NONE
    Runs in your browserOpen tool
  • What Is My IP

    See the IP address our server sees, the rough location attached to it and what your browser sends.

    NONE
    Server lookupOpen tool