JSON Formatter
Paste on the left — see results instantly on the right.Input
0 B · 1 lines · max 100MB · FE Worker ready
Output will appear here
Paste JSON — auto-formats. Drag edges to scale.
Documentation & FAQ▾
How it works (no scroll needed)
- Paste or drop
.jsonleft — auto-formats right in 200ms. - Switch tabs: Formatted / Tree / Minified.
- Drag ↔ to see 200-char lines, ↕ to see 100 lines.
- Copy / Download — stays in your browser.
import { formatJson } from "@/tools/json/formatter";
formatJson(input, { indent: 2, sortKeys: true });What is a JSON formatter?
Pretty-prints minified JSON via JSON.parse/stringify locally — highlighted + tree without upload.
Privacy
Files via File API, never uploaded, never in URLs or analytics. Works offline.
Frequently Asked Questions
- Is my JSON uploaded anywhere?
- No. All processing is local. We track only anonymous events like 'format_clicked' — never your content.
- How do I see 200-char lines?
- Drag the center divider ↔ to widen the right panel, or scroll horizontally — panels now support overflow-x.
- How do I see 100 lines?
- Drag the bottom handle ↕ to scale height from 320 to 900px. Both panels scale together.
- Can I sort keys or use tabs?
- Yes — toggle Sort and choose 2/4/Tab.
Related Tools
- →
JSON Validator
Validate JSON and get precise line/column errors.
- →
JSON Minifier
Minify JSON to reduce size for production.
- →
JWT Decoder
Decode and verify JSON Web Tokens safely in your browser.
- →
Base64 Encoder
Encode text and files to Base64 locally.
- →
Base64 Decoder
Decode Base64 strings instantly.
- →
URL Encoder
Encode and decode URLs and query strings.
Advertisement — top
Ad placeholder — respects privacy, no tracking of tool input. Will be replaced with provider later.