Biến đổi lưu trữ dữ liệu
Chuyển đổi lưu trữ số giữa bit, byte, KB, MB, GB, TB và đơn vị nhị phân.
Kết quả cập nhật khi bạn gõ.
Về máy tính này
A data storage converter changes a digital size between bits and bytes and their multiples, converting through the byte as a common base. It covers both the decimal SI units — kilobyte, megabyte, gigabyte, terabyte and petabyte, each a power of 1,000 — and the binary IEC units — kibibyte, mebibyte, gibibyte and so on, each a power of 1,024.
Keeping the two families apart is the whole point: 1 KB is 1,000 bytes but 1 KiB is 1,024 bytes, and the gap widens at each step, reaching about 10% by the terabyte. There are always 8 bits in a byte, whichever family you use.
Worked example: to convert 500 megabytes to gigabytes in SI units, divide by 1,000, giving 0.5 GB. To see why a "1 TB" drive shows as about 931 GiB, divide 1,000,000,000,000 bytes by 1,073,741,824, the number of bytes in a gibibyte. A results table lists the size in every unit at once, handy for sizing downloads, disks and bandwidth.
Câu hỏi thường gặp
Một kilobyte là 1000 hay 1024 byte?
Nó phụ thuộc vào đơn vị. Kilobyte (KB) SI là 1000 byte, trong khi kibibyte nhị phân (KiB) là 1024 byte. Nhà kho thường được bán theo đơn vị thập phân và được Đã báo cáo bởi một số phần mềm trong nhị phân, đó là lý do tại sao một ổ "1 TB" hiển thị là ~931 GiB.
Một byte có bao nhiêu bit?
Có 8 bit trong một byte. Tốc độ mạng thường được ghi bằng bit trên giây, vì vậy một liên kết 100 Mbps chuyển nhiều nhất khoảng 12.5 MB trên giây.
Một gigabyte có bao nhiêu megabyte?
In decimal SI units, 1 GB = 1,000 MB. In binary units, 1 GiB = 1,024 MiB.
Tại sao ổ cứng của tôi cho thấy ít không gian hơn so với thông báo?
Manufacturers sell drives in decimal units (a "1 TB" drive is 1,000,000,000,000 bytes), but many operating systems report size in binary units. Dividing by 1,073,741,824 turns that 1 TB into about 931 GiB, so no space is actually missing.
Làm sao tôi chuyển đổi megabit thành megabyte?
Divide megabits by 8, because a byte is 8 bits. A 100 Mbps connection therefore transfers at most about 12.5 megabytes per second, and this data storage converter treats bits and bytes with that 8-to-1 ratio.
Sự khác biệt giữa megabyte và mebibyte là gì?
A megabyte (MB) is 1,000,000 bytes, while a mebibyte (MiB) is 1,048,576 bytes (1,024²). The binary mebibyte is about 4.9% larger.
API — dùng máy tính này từ mã
Gọi máy tính này như một điểm kết thúc JSON miễn phí — không cần chìa khóa. Gửi giá trị trường dưới như tham số yêu cầu hoặc JSON. Mọi thứ bạn bỏ qua sẽ sử dụng cùng một mặc định mà trang này đã được điền trước; một tham số không biết là 400, không bao giờ là số 0 im lặng. Đọc toàn bộ tài liệu API →
Điểm kết thúc
GET https://calculator.free/api/v1/data-storage/
curl
curl "https://calculator.free/api/v1/data-storage/?amount=1&from=mb&to=gb"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/data-storage/?" + new URLSearchParams({
"amount": "1",
"from": "mb",
"to": "gb"
}));
const data = await r.json();
console.log(data.results);
Kết quả là ước tính chỉ cho hướng dẫn chung, không phải là tư vấn tài chính, y tế hoặc thuế.