Đị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
Click "Format HTML" to see outputHTML Formatter & Beautifier
Beautify and format HTML code with proper indentation. Converts minified or messy HTML into clean, readable markup. Also validates basic tag nesting for structural errors.
FAQ
How do I beautify HTML online?
Paste your HTML into the input, click Format, and get properly indented markup. Each nested element is indented by 2 spaces, making the structure immediately clear.
Why is my HTML minified?
Build tools like webpack, Vite, and Next.js minify HTML for production to reduce file size. This formatter reverses that process so you can read and inspect the output.
Does the formatter fix broken HTML?
It reformats existing HTML. It won't add missing closing tags, but it will make structural errors more visible so you can fix them manually.
Tiếp tục khám phá
Công cụ Công cụ Developer khác bạn có thể thích…
Đị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
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ý
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