Format JSON Online - Clean, Inspect, and Analyze
DiffForge formats messy JSON, escaped JSON strings, and CloudWatch-style log lines directly in your browser. Beautify or minify data, inspect nested objects with a collapsible tree, keep line numbers visible, and surface useful structure such as links, domains, keys, arrays, depth, and primitive counts without uploading anything.
Clean JSON from Logs and Escaped Strings
Paste raw JSON, JSON with comments, escaped JSON strings, or log lines that contain embedded payloads. DiffForge extracts the JSON candidate, decodes nested JSON strings when enabled, and returns readable formatted output.
Collapsible JSON Tree Viewer
Switch from raw formatted text to an expandable tree view for large payloads. Objects and arrays can be collapsed so API responses, event payloads, and nested configuration files are easier to scan.
JSON Analysis with Links and Domains
After formatting, DiffForge summarizes the payload: total values, max depth, key count, objects, arrays, strings, numbers, booleans, nulls, and detected links. Full URLs stay visible and clickable for quick API endpoint inspection.
Line Numbers, Copy, and Download
Use line-numbered input and output panels for debugging parse errors or sharing exact references. Copy formatted JSON to the clipboard or download a .formatted.json file for handoff.