Trình định dạng và kiểm tra JSON miễn phí trực tuyến
Paste your JSON to format, minify, or validate it instantly. All processing happens in your browser.
What Is JSON?
JSON (JavaScript Object Notation) is a lightweight data format used to exchange data between servers and web applications. It's human-readable and easy for machines to parse. This tool helps you format, minify, and validate JSON data · perfect for developers debugging API responses, config files, and data structures.
Features
- Format / Pretty Print · Indent JSON with 2 or 4 spaces for readability.
- Minify · Remove all whitespace to create the smallest possible payload.
- Validate · Instantly check if your JSON is valid with clear error messages.
- Tree View · Interactive collapsible tree with type-colored values. Click any node to see its JSON path.
- Sort Keys · Alphabetically sort all object keys for consistent output.
- JSON Path · Click any key or value in tree view to display and copy its path (e.g.
$.features.clientSide).
Frequently Asked Questions
Why does my JSON fail validation?
Common issues include trailing commas after the last item, single quotes instead of double quotes, unquoted keys, and missing brackets. JSON is strict · keys and string values must use double quotes ("key", not 'key').
What's the difference between format and minify?
Formatting adds indentation and newlines so humans can read it. Minifying removes all unnecessary whitespace to reduce file size for production use. The data content is identical either way.
Is there a size limit?
There is no hard limit. Since the tool runs in your browser, very large JSON files (10+ MB) may be slow on older devices. For typical API responses and config files, it works instantly.