Gagnageymsla Converter
Umbreyta stafræn geymsla á milli bita, bæta, KB, MB, GB, TB og tvöfaldur einingar.
Niðurstöður uppfæra eins og þú slærð.
Um þessa reiknivél
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.
Algengar spurningar
Er kílóbæti 1000 eða 1024 bæti?
Það fer eftir einingu. SI kílóbætið (KB) er 1000 bæti, en tvíunda kíbíbætið (KiB) er 1024 bæti. Geymsla er venjulega seld í tugabrotseiningum og tilkynnt af sumum hugbúnaði í tvíunda, sem er ástæðan fyrir því að "1 TB" drif birtist sem ~931 GiB.
Hversu margir bita eru í bæti?
There are 8 bits in a byte. Network speeds are usually quoted in bits per second, so a 100 Mbps link transfers at most about 12.5 MB per second.
Hversu margir megabæti eru í gigabyte?
Í SI-einingum er 1 GB = 1.000 MB. Í tvinntölueiningum er 1 GiB = 1.024 MiB.
Af hverju sýnir harða diskinn minn minna pláss en auglýst?
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.
Hvernig breyti ég megabits til megabæta?
Deila megabits með 8, vegna þess að bæti er 8 bita.100 Mbps tenging flytur því að hámarki um 12.5 megabæti á sekúndu og þessi gagnageymslubreytir meðhöndlar bita og bæti með því 8-til-1 hlutfalli.
Hver er munurinn á megabæti og mebibyte?
Ein megabæti (MB) er 1.000.000 bæti, en mebíbæti (MiB) er 1.048.576 bæti (1.024²) og er tvíunda mebíbætið um 4,9% stærra.
API — nota þessa reiknivél frá kóða
Hringdu í þessa reiknivél sem ókeypis JSON endapunkt - enginn lykill þarf. Sendu gildi reitsins hér að neðan sem fyrirspurnarbreytur eða JSON. Allt sem þú sleppir notar sömu sjálfgefnu stillingu og þessi síða er fyllt með; óþekkt breyta er 400, aldrei þögult núll. Lestu API skjölin í heild sinni →
Endir
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);
Niðurstöður eru áætlanir um almenna leiðbeiningar aðeins, ekki fjárhagslega, læknisfræðilega eða skattaráðgjöf.