Định dạng JSON
Định dạng, kiểm tra và nén JSON với tô sáng cú pháp và phát hiện lỗi
Output will appear here
Paste your JSON and click format
Client-side processing
Your data never leaves your device
JSON Formatter & Validator
Paste minified or broken JSON and get it instantly formatted, indented, and validated. Highlights syntax errors with the exact line number — the fastest way to debug API responses.
FAQ
How do I format JSON online?
Paste your JSON and click Format. The tool indents it with 2-space or 4-space tabs and validates the structure.
How do I fix invalid JSON?
The validator highlights the error line. Common issues: trailing commas, missing quotes on keys, unescaped characters.
What is the difference between JSON and JSONC?
JSONC allows // comments. Standard JSON does not. Strip comments before parsing with most parsers.
How do I minify JSON?
Use the Minify button to remove all whitespace from JSON — useful when sending data in HTTP requests to reduce payload size.
Tiếp tục khám phá
Công cụ Công cụ Developer khác bạn có thể thích…
Mã hóa/Giải mã Base64
Mã hóa văn bản hoặc file sang Base64 và giải mã chuỗi Base64 thành văn bản
Mã hóa/Giải mã URL
Mã hóa và giải mã thành phần URL và tham số query string
Tạo UUID
Tạo UUID ngẫu nhiên (v1, v4) hoặc tạo hàng loạt nhiều UUID cùng lúc
Tạo Hash
Tạo hash MD5, SHA-1, SHA-256, SHA-512 từ văn bản hoặc file
Kiểm tra Regex
Kiểm tra biểu thức chính quy với tô sáng khớp thời gian thực và trích xuất nhóm
Giải mã JWT
Giải mã và kiểm tra JSON Web Token — xem header, payload và xác minh chữ ký
Định dạng HTML
Định dạng và làm đẹp mã HTML với thụt lề đúng và tô sáng cú pháp
Nén CSS
Nén mã CSS để giảm kích thước file bằng cách xóa khoảng trắng và comment