Code Input Area
Paste JSON here, or drop a .json file.
JSON Formatter & Viewer
Paste minified or messy JSON to pretty-print it with consistent indentation and syntax highlighting. It all happens in your browser, so it's fine for API responses and config you'd rather not upload.
What you get
- Indentation you choose (Settings → Tab size).
- Collapsible objects and arrays: use the fold gutter, or Ctrl Shift [ / ] (⌘ ⌥ [ / ] on a Mac) to fold or unfold everything.
- One-click copy of the formatted result.
- JSON Schema documents also open as an interactive tree, and Kubernetes CRDs as browsable docs.
Try it
Load a sample JSON document See a JSON Schema as a tree
Good to know
Input that isn't valid JSON is shown as-is rather than formatted. One JSON value per line is detected as JSON Lines and formatted line by line.
Related: YAML formatter · JSON Schema viewer · JWT decoder
Try an example
100% in-browser. Nothing you paste is uploaded.
Formatted Code Output
Header
Payload