Format, Validate & Repair JSON Locally
Repair + TreeFormat, validate, and minify JSON locally—automatically repairing trailing commas and comments, sorting keys recursively, and rendering tree views.
or drop a text or data file here · Ctrl V to paste · or drop a .json file · Ctrl V to paste raw or JSON5 text
- 0 bytes uploaded
- Repairs trailing commas & comments
- Collapsible JSON tree
Instant Before & After Preview
Repairs trailing commas{
// Trailing comma repaired automatically
"status": "ok",
"meta": {"page": 1, "total": 42,},
"tags": ["local", "private",]
}{
"status": "ok",
"meta": {
"page": 1,
"total": 42
},
"tags": [
"local",
"private"
]
}How it works
How to validate, repair, and inspect JSON locally
Debug API responses and messy JSONC configs right in browser memory without risking customer or token leaks.
- Paste or drop JSONPaste minified API blobs or JSONC files containing trailing commas and // comments.
- Choose indent, sort, or minifyKeep Repair Trailing Commas enabled, choose indent width or Minify, and switch between raw JSON and Tree View.
- Continue to TOON, CSV, or TSCopy clean JSON or pipe it straight into JSON to TOON, JSON to CSV, or JSON to TypeScript.
Format specs:JSON (.json)
FAQ
Frequently asked questions
Is trailing comma and comment repair safe for string values containing // or commas?
Yes. TxtTo scans character-by-character outside quoted string literals so URLs like https://txtto.app inside JSON strings remain completely untouched.
What does Sort Keys Alphabetically help with?
Recursively sorting object keys makes comparing two API responses in Diff Checker effortless.
Can I toggle between raw formatted text and an interactive tree?
Yes. When Tree View is enabled, you can switch between formatted code and an expandable node tree.