Bộ mã hóa & Crypto
Bộ chuyển đổi Data URL
Bộ chuyển đổi data URL miễn phí. Mã hóa bất kỳ tệp nào thành data URL base64 để nhúng trong dòng, hoặc giải mã một data URL trở lại thành tệp. Dựa trên trình duyệt, không tải lên.
Ghi chú của biên tập viên
Understanding · Files, smuggled into a string.
Chương phân tích chuyên sâu này hiện chỉ có sẵn bằng tiếng Anh. Công cụ chuyển đổi ở trên hoạt động bằng ngôn ngữ của bạn; bài viết giải thích dài chưa được dịch.
Các câu hỏi thường gặp
Quick answers.
›What is a Data URL?
A Data URL is a scheme used to embed data in-line in documents, formatted as `data:[mediatype][;base64],data`. It is commonly used for small icons or CSS assets to reduce external dependencies.
›Are my files secure?
Yes. The encoding and decoding happen entirely within your browser's memory. No file data is sent to our servers or stored permanently.
›When should I avoid Data URLs?
Base64 encoding increases file size by approximately 33% compared to binary files. Large files should be kept as separate assets to avoid slowing down page renders and to allow for browser caching.
›How do I use the output in CSS?
Copy the generated string and paste it into a `url()` function, such as `background-image: url('data:image/png;base64,...');`. This embeds the image directly within your stylesheet.
Mọi người cũng tìm kiếm
Use with
What people reach for next.
Công cụ liên quan
More in this room.
- Mã hóa / Giải mã Base64Mã hóa và giải mã Base64 — an toàn Unicode.
- Mã hóa / Giải mã URLMã hóa phần trăm và giải mã URL một cách an toàn.
- Mã hóa / Giải mã thực thể HTMLThoát hoặc loại bỏ thoát các ký tự đặc biệt của HTML.
- Chuyển đổi hệ (Hex / Nhị phân / Bát phân)Chuyển đổi giữa hệ thập lục phân, nhị phân, bát phân và thập phân.
- Mã hóa & giải mã Base32RFC 4648 Base32 — cả hai hướng, trong trình duyệt.
- Bộ chuyển đổi ASCII / UnicodeKiểm tra từng điểm mã của bất kỳ chuỗi nào.