JSON Formatter

Pretty-print with the chosen indentRemove all whitespaceTurn any text into a JSON string literalTurn a JSON string literal back into its text
Replace the input with an exampleEmpty the inputLoad from a URL, share, save, keyboard shortcuts
53 BOpen a .json or .txt file (up to 10 MB), or drop it on the input
Show the output as highlighted textBrowse, search and query the output as a tree
Replace the input with the outputSave the output as formatted.jsonCopy the output to the clipboard
{
  "hello": "world",
  "list": [
    1,
    2,
    3
  ],
  "nested": {
    "ok": true
  }
}

Valid JSON53 B · 4 keys · depth 2 · 2 objects · 1 array · 1 string · 3 numbers · 1 boolean · 0 null values · longest array 3