Tối Ưu Hóa Tệp SVG
Tối ưu hóa và làm sạch mã SVG: xóa siêu dữ liệu trình thiết kế thừa, làm gọn tọa độ đường path, gộp các thuộc tính và giảm kích thước tệp đáng kể.
SVG
Optimized SVG
Approximate savings: 92 bytes.
Cách thức hoạt động
Nhập dữ liệu của bạn
Điền các giá trị cần thiết, dán văn bản hoặc tải lên tệp bạn muốn xử lý.
Xem kết quả tức thì
Hầu hết các công cụ cập nhật theo thời gian thực khi bạn nhập liệu; một số công cụ sử dụng một nút hành động duy nhất.
Sử dụng kết quả
Sao chép, tải xuống hoặc chia sẻ kết quả được tạo — bạn luôn có toàn quyền kiểm soát dữ liệu của mình.
Tối Ưu Hóa Tệp SVG là gì?
Remove common export noise from SVG code while keeping the drawing elements, attributes, and paths intact.
How to optimize SVG markup
What gets removed
The optimizer removes XML declarations, doctype lines, comments, metadata blocks, extra whitespace, and common editor attributes such as Inkscape, Sketch, Sodipodi, and data-name fields.
What stays
Shape elements, path data, fills, strokes, dimensions, viewBox, and most regular SVG attributes are preserved. This makes the output smaller without trying to redraw or reinterpret the icon.
Before using optimized SVG
- Preview the SVG in your app or design system after optimization.
- Keep accessibility attributes such as title, role, or aria labels if your source uses them.
- Review SVG from untrusted sources before embedding it in a page.
Markup handling
The output is plain SVG text. Keep a copy of the original export if you may need editor metadata or layer names later.
Các Câu Hỏi Thường Gặp (FAQ)
Does this change the drawing?
It should not intentionally change the drawing. It removes metadata and whitespace around the markup, but you should still preview important assets after optimization.
Does it minify path data?
No. It does not rewrite path commands or coordinates, so savings are conservative and less risky.
Why does it reject my input?
The input must contain an SVG element. If you pasted only a path or copied a rendered image, wrap it in valid SVG markup first.
Does it sanitize unsafe SVG?
No. It removes common export clutter, but it is not a security sanitizer. Review untrusted SVG before embedding it.
Công Cụ Liên Quan
- Khả dụngCục bộ
Kiểm Tra Độ Tương Phản Màu
Kiểm tra tỷ lệ tương phản màu sắc văn bản và nền theo tiêu chuẩn WCAG 2.1.
- Khả dụngCục bộ
Tính Tỷ Lệ Khung Hình (Aspect Ratio)
Tính kích thước chiều rộng hoặc chiều cao tương ứng theo tỷ lệ 16:9, 4:3, 1:1...
- Khả dụngCục bộ
Trình Tạo CSS clamp() Kiểu Chữ & Khoảng Cách Linh Hoạt
Tạo các quy tắc CSS clamp() cho cỡ chữ và khoảng cách co giãn mượt mà theo màn hình.
- Khả dụngCục bộ
Chuyển Đổi SVG sang Data URI
Chuyển đổi mã SVG thành chuỗi CSS background Data URI và ngược lại.
- Khả dụngCục bộ
Trích Xuất Bảng Màu từ Hình Ảnh
Tự động trích xuất các màu sắc chủ đạo từ bất kỳ bức ảnh nào.
- Khả dụngCục bộ
Tính Điểm Ưu Tiên CSS Specificity
Đo lường và so sánh trọng số ưu tiên của các bộ chọn CSS (Inline, ID, Class, Element).
- Khả dụngCục bộ
Tính Thang Tỷ Lệ Kiểu Chữ Typography
Tạo hệ thống cỡ chữ hài hòa theo các tỷ lệ vàng, tỷ lệ Major Third, Perfect Fourth...
- Khả dụngCục bộ
Mô Phỏng Thị Giác Mù Màu
Xem trước hình ảnh qua góc nhìn của các dạng mù màu (Đỏ-Xanh, Lam-Vàng...).
- Khả dụngCục bộ
Tính Mật Độ Điểm Ảnh Màn Hình (PPI)
Tính mật độ điểm ảnh PPI, kích thước điểm ảnh (dot pitch) và tổng số pixel màn hình.
- Khả dụngCục bộ
Tạo Chữ Ký Email Chuyên Nghiệp HTML
Tạo mẫu chữ ký email đẹp mắt kèm logo, chức danh, liên kết mạng xã hội.