Name=แปลงข้อมูล
เปลี่ยนหน่วยความจำดิจิตอลระหว่างบิต, ไบต์, KB, MB, GB, TB และหน่วยบินารี่
ผลลัพธ์จะปรับปรุงเมื่อคุณพิมพ์
เกี่ยวกับเครื่องคิดเลขนี้
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.
คำถามที่ถามบ่อย
กิโลไบต์ เท่ากับ 1000 หรือ 1024 ไบต์
ขึ้นอยู่กับหน่วยที่ใช้ หน่วย SI กิโลไบต์ (KB) คือ 1,000 ไบต์ ในขณะที่หน่วยคิโบไบต์ (KiB) คือ 1,024 ไบต์ โดยปกติแล้ว การจัดเก็บข้อมูลจะถูกขายในหน่วยทศนิยม และบางซอฟต์แวร์จะรายงานแล้วในหน่วยบินี ดังนั้น ไดรฟ์ "1 TB" จึงแสดงเป็น ~931 GiB
จำนวนบิตในไบต์คือกี่บิต
มี 8 บิตในไบต์ ความเร็วของเครือข่ายโดยปกติจะแสดงเป็น บิตต่อวินาที ดังนั้น ลิงค์ 100 Mbps จะส่งข้อมูลได้มากสุดประมาณ 12.5 MB ต่อวินาที
กี่เมกะไบต์ในกิกะไบต์?
In decimal SI units, 1 GB = 1,000 MB. In binary units, 1 GiB = 1,024 MiB.
ทำไมฮาร์ดไดรฟ์ของฉันแสดงว่ามีพื้นที่น้อยกว่าที่ประกาศไว้
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.
ฉันจะแปลงเมกะบิตเป็นเมกะไบต์ได้ยังไง?
แบ่งเมกะไบต์ออกเป็น 8 เพราะว่าไบต์หนึ่งมี 8 บิต ดังนั้น การเชื่อมต่อ 100 Mbps จะส่งข้อมูลได้มากที่สุดประมาณ 12.5เมกะไบต์ต่อวินาที และเครื่องแปลงข้อมูลนี้จะใช้บิตและไบต์ในอัตราส่วน 8 ต่อ 1
ความแตกต่างระหว่างเมกะไบต์กับเมบิไบต์คืออะไร
เมกะไบต์ (MB) เท่ากับ 1,000,000 ไบต์, ในขณะที่ เมบิไบต์ (MiB) เท่ากับ 1,048,576 ไบต์ (1,024²) เมบิไบต์แบบสองตัวมีขนาดใหญ่กว่าประมาณ 4.9%
API - ใช้เครื่องคิดเลขนี้จากโค้ด
เรียกเครื่องคิดเลขนี้เป็นจุดจบ JSON แบบฟรี - ไม่จำเป็นต้องใช้กุญแจ ส่งค่าในช่องด้านล่างนี้เป็นพารามิเตอร์คำถามหรือ JSON ทุกอย่างที่คุณลบออก จะใช้ค่าปริยายที่หน้านี้ใช้อยู่ พารามิเตอร์ที่ไม่รู้จักคือ 400 และไม่เคยเป็นศูนย์ที่เงียบ อ่านเอกสาร API ทั้งหมด →
จุดสิ้นสุด
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);
ผลลัพธ์เป็นเพียงการประมาณการ สำหรับคำแนะนำทั่วไปเท่านั้น ไม่ใช่การเงิน การรักษา หรือคำแนะนำเกี่ยวกับภาษี