Multiple-byte units
Decimal
Value Metric
1000 kB kilobyte
10002 MB megabyte
10003 GB gigabyte
10004 TB terabyte
10005 PB petabyte
10006 EB exabyte
10007 ZB zettabyte
10008 YB yottabyte
10009 RB ronnabyte
100010 QB quettabyte
Binary
Value IEC Memory
1024 KiB kibibyte KB kilobyte
10242 MiB mebibyte MB megabyte
10243 GiB gibibyte GB gigabyte
10244 TiB tebibyte TB terabyte
10245 PiB pebibyte
10246 EiB exbibyte
10247 ZiB zebibyte
10248 YiB yobibyte
Orders of magnitude of data

Usage

edit

Convert between multiple-byte units.

Parameter Usage
1 The value to convert
2 The unit prefix for the provided value. One of SI or IEC prefixes.
3 The unit prefix to convert into.
4 Significant digits after decimal dot or, if negative, exponent of ten.
d Decimal mode. If set, prefixes will based on powers of 10 instead of 2.
Automatically set if IEC prefix is used.
link Add link to provided unit.
fmt fmt parameter for internal {{val}}. Default: commas

Examples

edit
Code Result
{{Bytes|64|K}} 64 KB (65,536 bytes)
{{Bytes|64|K|d=1}} 64 KB (64,000 bytes)
{{Bytes|1000000||M|3}} 1,000,000 bytes (0.9537 MB)
{{Bytes|1|Gi|G|3|link=gibibyte}} 1 GiB (1.074 GB)
{{Bytes|1|T|Gi|3}} 1 TB (931.323 GiB)
{{Bytes|1000000000||G|6|fmt=}} 1000000000 bytes (0.931323 GB)