Format and beautify raw, minified, or poorly formatted JSON into cleanly indented output with full control over the formatting style. This tool supports JSONC (JSON with Comments), trailing comma removal, compact/minified output, recursive inlining of nested arrays and objects, and unicode escaping — all formatting and beautifying happens in your browser for complete privacy.
Choose between spaces and tabs with a configurable indent size up to 20 levels. Use the interactive slider for quick adjustments or type any value directly.
Compress JSON to a single line by removing all whitespace — ideal for reducing payload size or embedding in URLs and APIs.
Strip single-line (//) and multi-line (/* */) comments from JSONC files like tsconfig.json, VS Code settings.json, and ESLint configs before formatting.
Automatically remove trailing commas before ] and } to convert JSON5-like input into strict JSON.
Recursively inline arrays and objects — including deeply nested structures — onto a single line when they fit within the configurable character threshold (up to 1000 chars). A nested object like {"pool":{"min":2,"max":10}} stays compact when it fits, while larger structures expand normally.
Convert non-ASCII characters in string values to \uXXXX escape sequences for ASCII-safe JSON output compatible with legacy systems.
Paste a minified API response to instantly see the full structure with proper indentation, making it easy to inspect nested objects and arrays.
Clean up messy tsconfig.json, package.json, or VS Code settings files with consistent indentation and optional comment stripping.
Compress formatted JSON to a single compact line for embedding in environment variables, API request bodies, or URL parameters.
Ensure all team members use the same JSON formatting style (2-space indent, collapsed empty structures) for consistent code reviews and diffs.
Escape unicode characters for systems that require ASCII-only JSON, such as older databases or legacy APIs that don't support UTF-8.
Extract all keys from a JSON object — flat list, by depth level, or fully namespaced paths.
Extract and unescape text values from JSON strings.
Convert JSON arrays to newline-separated lines and vice versa.
Convert plain text to JSON with proper escaping.