File Size

File size is a measure of how much data a computer file contains or, alternately, how much storage it consumes.

Typically, file size is expressed in units of measurement based on the byte. By convention, file size units use either a metric prefix (as in megabyte and gigabyte) or a binary prefix (as in mebibyte and gibibyte).

When a file is written to a file system, which is the case in most modern devices, it may consume slightly more disk space than the file requires. This is because the file system rounds the size up to include any unused space left over in the last block used by the file. (A sector is the smallest amount of space addressable by the file system. The size of a disk sector ranges from several hundred to several thousand bytes. A file system block is one or more sectors in size.) The unused space is called slack space or internal fragmentation. Although smaller sector sizes allow for denser use of disk space, they decrease the operational efficiency of the file system.

Maximum size

The maximum file size a file system supports depends not only on the capacity of the file system, but also on the number of bits reserved for the storage of file size information. The maximum file size in the FAT32 file system, for example, is 4,294,967,295 bytes, which is one byte less than four gigabytes. The table below details the maximum file size for a number of common or historical file systems.

File system Maximum size
APFS 8 EB
exFAT 16 EB - 1 byte
FAT12 16 MB (4 KB clusters) or 32 MB (8 KB clusters)
FAT16B 2 GB (without LFS) or 4 GB - 1 byte (with LFS)
FAT32 4 GB - 1 byte
HFS 2 GB
HFS+ 8 EB
HPFS 2 GB
NTFS 16 EB - 1 KB
Btrfs 16 EB

Units of information

Bytes are the typical base unit of information. Larger files will typically have their sizes expressed using kilobyte, megabyte or gigabyte depending upon how large the file is. While these larger units are not as accurate as the byte size, most operating systems will expose the true byte size of a file by inspecting the file properties directly. Command line tools can also expose the exact byte size as well.

A file system may display all sizes with the metric system with only 'kB' on small files indicating it, while some file systems/operating systems would display sizes in, the traditionally used on computers, binary system for all sizes, e.g. 'KB', while hard disk manufacturers use the metric system (for e.g. GB = 1,000,000,000 bytes and TB = 1000 GB).

Kilobyte (KB) (JEDEC), is sometimes referred to unambiguously as kibibyte (KiB)(IEC). Sometimes kB, with lower cased SI-prefix 'k-' for kilo (1000), is used, then always equaling 1000 bytes.

File transfers (e.g. "downloads") may use rates of units of bytes (e.g. MB/s) in binary rather than metric system, while networking hardware, such as WiFi, always uses the metric system (Mbit/s, Gbit/s etc.). of units of bits (and it needs to send more than the files themselves, so some overhead needs to be factored in), making superficially similar terms very incompatible.[citation needed]

See also

Notes

References

This article uses material from the Wikipedia English article File size, which is released under the Creative Commons Attribution-ShareAlike 3.0 license ("CC BY-SA 3.0"); additional terms may apply (view authors). Content is available under CC BY-SA 4.0 unless otherwise noted. Images, videos and audio are available under their respective licenses.
®Wikipedia is a registered trademark of the Wiki Foundation, Inc. Wiki English (DUHOCTRUNGQUOC.VN) is an independent company and has no affiliation with Wiki Foundation.

Tags:

File Size Maximum sizeFile Size Units of informationFile SizeBinary prefixByteComputer data storageComputer fileData (computing)GibibyteGigabyteMebibyteMegabyteMetric prefixUnits of measurement

🔥 Trending searches on Wiki English:

Aavesham (2024 film)Black holeDiljit DosanjhKristen WiigBluey (2018 TV series)Lauryn Hill2024 AFC Futsal Asian CupMatt BerryThailand2024 Indian general election in Uttar PradeshJake Paul vs. Mike TysonNina DobrevVladimir Putin2024 Indian Premier LeagueFIFA World CupBaby ReindeerLisa Marie PresleyHamasDerek UnderwoodJack AntonoffSyed Abdul RahimJérémy DokuPirates of the Caribbean (film series)Shōgun (2024 miniseries)Mohammad Reza PahlaviNew Orleans PelicansJeffrey DahmerAnyone but YouAnimal (2023 Indian film)Curb Your EnthusiasmEduardo CamavingaDuckDuckGoIsidor StrausCanvaBob Marley2020 United States presidential electionFallout 4Gwen StefaniAlia BhattDan SchneiderDune (novel)MadonnaGame of ThronesThe Family StarJackie RobinsonDune MessiahBob DylanDeadpool & WolverineKatharine BirbalsinghJoseph StalinElla PurnellProject 2025ZionismLuka ModrićVietnam WarKyle WalkerHosokawa Gracia2024 Wakeley church stabbingElizabeth IIIranCole PalmerFC Bayern MunichPavel DurovMurder of Yvonne FletcherOmanKobe BryantRomárioGeorge WashingtonSelenaGoogleTesla, Inc.United Arab EmiratesJuan MerchanSeven deadly sinsChristopher NolanMegan Leavey3 Body Problem (TV series)Gmail🡆 More