Editing
Format & Minify
Beautify or compress, with configurable indent.
Toolbar buttons / Ctrl+Enter to format / Ctrl+Shift+M to minify.
Format
Pretty-prints the document with indentation taken from the Indent dropdown in the status bar (0/2/4/8 spaces). Works on both JSON and YAML. Re-runs the parser first, so a bad document gets a marker instead of silent failure.
Minify
Strips all whitespace and produces the smallest valid output. For YAML, minify produces flow-style output (e.g. `{a: 1, b: 2}`) instead of block style.
Tip
The active document is auto-snapshotted to Recent documents every 30 seconds when it parses cleanly, so format/minify rounds never lose your work.
Examples
Minify before pasting into a config field
You need to paste a JSON value into a single-line config field (e.g. an env var or a database column).
- Ctrl+Shift+M.
- Ctrl+Shift+C (or click Copy).
Input (json)
{
"id": 1,
"name": "x"
}Output (json)
{"id":1,"name":"x"}