Ori ToolsOribox
← All tools

Text and developer

JSON Formatter

Use JSON Formatter online for free. Set Text, Output and run it in your browser. No sign-up required.

Input

Result

How to use

  1. Open JSON Formatter and review the inputs below.
  2. Enter your values and check the units shown beside each field.
  3. Adjust the options, then press Run or Calculate. Interactive tools show their own start controls in the result area.
  4. Review the result. Use the copy or download control when it is available.

Format and sort a JSON document

Choose pretty to add indentation, compact to remove unnecessary whitespace, or sort to order object keys. JSON keys and string values must use double quotes.

For example, sorting {"b":2,"a":1} puts the a key before b. Remove comments and trailing commas before formatting; these are not valid standard JSON.

Inputs and starting values

InputStarting value / exampleAvailable options
Text
Enter your own value
Output
pretty
pretty / compact / sort

Things to check

The starting values are examples, not recommendations. Check the units and replace them with your own values.

Frequently asked questions

Are my inputs and files uploaded?

The tool processes inputs in your browser without uploading them. Browser storage, microphone or sensor permissions are described by the tool when applicable.

Related tools

See all 378 tools