Skip to content
Arteon - company logo
#MadeWithNext.js
Arteon logo

Free tools for web developers, designers, and marketers.

  • Online image editor
  • Favicon generator
  • Meta title & description checker
  • Word & character counter
  • Lorem Ipsum Generator
  • Email signature generator
  • Color contrast checker
  • Image color extractor
  • Color palette generator
  • Free QR code generator
  • PNG to JPG
  • JPG to PNG
  • WebP to JPG
  • WebP to PNG
  • SVG to PNG
  • SVG to JPG
  • BMP to JPG
  • BMP to PNG
  • GIF to PNG
  • GIF to JPG
  • JPG to WebP
  • PNG to WebP
  • SVG to WebP
  • GIF to WebP
  • BMP to WebP
  • AVIF to JPG
  • AVIF to PNG
  • AVIF to WebP
  • HEIC to JPG
  • HEIC to PNG
  • HEIC to WebP
  • TIFF to JPG
  • TIFF to PNG
  • TIFF to WebP
  • JPG to AVIF
  • PNG to AVIF
  • WebP to AVIF
  • SVG to AVIF
  • BMP to AVIF
  • GIF to AVIF
  • HEIC to AVIF
  • TIFF to AVIF
  • JPG to GIF
  • PNG to GIF
  • WebP to GIF
  • SVG to GIF
  • BMP to GIF
  • JPG to TIFF
  • PNG to TIFF
  • WebP to TIFF
  • SVG to TIFF
  • BMP to TIFF
  • AVIF to TIFF
  • HEIC to TIFF
  • JPG to PDF
  • PNG to PDF
  • WebP to PDF
  • HEIC to PDF
  • BMP to PDF
  • TIFF to PDF
  • SVG to PDF
  • PDF to JPG
  • PDF to PNG
  • PDF to WebP
  • CSV to JSON
  • JSON to CSV
  • XML to JSON
  • JSON to XML
  • YAML to JSON
  • JSON to YAML
  • Markdown to HTML
  • HTML to Markdown
  • Image to Base64
  • Base64 to Image
  • pt to px
  • rem to px
  • em to px
  • cm to px
  • px to cm
  • mm to px
  • px to mm
  • inches to px
  • cm to inches
  • inches to cm
  • mm to inches
  • inches to mm
  • miles to km
  • km to miles
  • meters to feet
  • feet to meters
  • inches to feet
  • feet to inches
  • lb to oz
  • oz to lb
  • ml to oz
  • oz to ml
  • kg to lb
  • lb to kg
  • HEX to RGB
  • RGB to CMYK
  • B to KB
  • KB to B
  • KB to MB
  • MB to KB
  • MB to GB
  • GB to MB
  • KB to GB
  • GB to KB
  • GB to TB
  • TB to GB
  • KB to TB
  • TB to KB
  • data units
  • Unix to date
  • DEC to BIN
  • DEC to HEX
  • Mbps to MB/s
© 2026 Arteon. All rights reserved.

Privacy Policy

Terms of Service

Sitemap

#MadeWithNext.js
  • Tools
  • About
  • Contact
Online image editorFavicon generator
Meta title & description checkerWord & character counterLorem Ipsum Generator
Email signature generator
Color contrast checkerImage color extractorColor palette generator
Free QR code generator
AVIF to JPGAVIF to PNGAVIF to TIFFAVIF to WebPBase64 to ImageBMP to AVIFBMP to GIFBMP to JPGBMP to PDFBMP to PNGBMP to TIFFBMP to WebPGIF to AVIFGIF to JPGGIF to PNGGIF to WebPHEIC to AVIFHEIC to JPGHEIC to PDFHEIC to PNGHEIC to TIFFHEIC to WebPImage to Base64JPG to AVIFJPG to GIFJPG to PDFJPG to PNGJPG to TIFFJPG to WebPPDF to JPGPDF to PNGPDF to WebPPNG to AVIFPNG to GIFPNG to JPGPNG to PDFPNG to TIFFPNG to WebPSVG to AVIFSVG to GIFSVG to JPGSVG to PDFSVG to PNGSVG to TIFFSVG to WebPTIFF to AVIFTIFF to JPGTIFF to PDFTIFF to PNGTIFF to WebPWebP to AVIFWebP to GIFWebP to JPGWebP to PDFWebP to PNGWebP to TIFF
CSV to JSONHTML to MarkdownJSON to CSVJSON to XMLJSON to YAMLMarkdown to HTMLXML to JSONYAML to JSON
B to KBcm to inchescm to pxdata unitsDEC to BINDEC to HEXem to pxfeet to inchesfeet to metersGB to KBGB to MBGB to TBHEX to RGBinches to cminches to feetinches to mminches to pxKB to BKB to GBKB to MBKB to TBkg to lbkm to mileslb to kglb to ozMB to GBMB to KBMbps to MB/smeters to feetmiles to kmml to ozmm to inchesmm to pxoz to lboz to mlpt to pxpx to cmpx to mmrem to pxRGB to CMYKTB to GBTB to KBUnix to date

Convert data units – B, KB, MB, GB, TB and PB

In the Convert from field, enter a value and pick its unit; in the Convert to field, pick the unit of the result. The conversion appears as you type. The Unit standard toggle sets how the tool counts: binary (1024), the way Windows does, or decimal (1000), the way drive makers state capacity.

  1. /Tools
  2. /data units
Loading tool editor...
B to KBKB to BKB to MBMB to KBMB to GBGB to MBKB to GBGB to KBGB to TBTB to GBKB to TBTB to KBMbps to MB/s
ADVERTISEMENT
Free data unit converter – Arteon

What is the data unit converter for?

Data sizes rarely reach you in one unit. A camera saves photos in megabytes, a carrier bills your plan in gigabytes, a server script expects a limit in bytes, and a drive maker states capacity in terabytes. Before you can compare those values, you have to bring them to a common unit.

This converter covers every data-size unit, from bytes to petabytes, and every combination of them. You pick the source and target unit with buttons below the fields, and the result appears while you type the value.

Windows and RAM count in binary, that is by 1024, while drive makers and macOS count in decimal, by 1000. The same capacity therefore has two correct values, and that is where most confusion about data sizes comes from. The Unit standard toggle below the fields converts in both standards and covers both fields at once.

How do you convert data units? Formula and examples

There is one rule: in the binary standard every next unit is 1024 times larger than the previous one, and in the decimal standard 1000 times. When you convert to a smaller unit you multiply, and to a larger one you divide.

The multiplier depends on how many intermediate units sit between the source and target unit. Neighbouring units, such as GB and MB, convert by 1024. Between GB and KB there is also MB, so the multiplier grows to 1024 × 1024, which is 1,048,576. Between TB and KB there are two intermediate units and the multiplier is 1,073,741,824. In the decimal standard the matching multipliers are 1000, 1,000,000 and 1,000,000,000.

Example: 5 GB converted to kilobytes in binary is 5 × 1,048,576, which is 5,242,880 KB. The same value counted in decimal is 5,000,000 KB. The difference reaches almost 5 percent and grows with larger units, so the choice of standard matters.

In Excel and Google Sheets you put the same multipliers straight into a formula. Gigabytes to megabytes is =A1*1024, megabytes to gigabytes =A1/1024, and gigabytes to kilobytes =A1*1048576, where A1 holds the source value. For the decimal standard, swap the multipliers for 1000 and 1000000.

ADVERTISEMENT

How many megabytes and kilobytes do popular capacities have?

The table below converts capacities from 1 GB to 2 TB into megabytes and kilobytes in the binary standard.

CapacityIn megabytesIn kilobytes
1 GB1,024 MB1,048,576 KB
2 GB2,048 MB2,097,152 KB
4 GB4,096 MB4,194,304 KB
8 GB8,192 MB8,388,608 KB
16 GB16,384 MB16,777,216 KB
CapacityIn megabytesIn kilobytes
64 GB65,536 MB67,108,864 KB
128 GB131,072 MB134,217,728 KB
512 GB524,288 MB536,870,912 KB
1 TB1,048,576 MB1,073,741,824 KB
2 TB2,097,152 MB2,147,483,648 KB

Reading example: 8 GB is 8,192 MB, which is 8,388,608 KB. You can get the decimal-standard values by switching the standard in the converter above.

How many bytes does each unit have in both standards?

The binary values have their own formal names introduced by the IEC: kibibyte (KiB), mebibyte (MiB), gibibyte (GiB), tebibyte (TiB) and pebibyte (PiB). Operating systems show them under the symbols KB, MB and GB, though, so the table below lists both ways of counting for each unit.

UnitBinary (1024)Decimal (1000)
1 KB1,024 B1,000 B
1 MB1,048,576 B1,000,000 B
1 GB1,073,741,824 B1,000,000,000 B
1 TB1,099,511,627,776 B1,000,000,000,000 B
1 PB1,125,899,906,842,624 B1,000,000,000,000,000 B

The gap between the standards grows with the unit: from 2.4 percent at the kilobyte to 12.6 percent at the petabyte. That is exactly why a drive labelled 1 TB shows about 931 GB in Windows.

ADVERTISEMENT

Data units from smallest to largest

The table below puts every data-size unit in order and shows what each of them usually describes in practice.

UnitRelationshipTypical example
Byte (B)base unitone character of text
Kilobyte (KB)1,024 Ba short email or icon
Megabyte (MB)1,024 KBa photo or an MP3 song
Gigabyte (GB)1,024 MBa movie or a RAM stick
Terabyte (TB)1,024 GBa hard drive
Petabyte (PB)1,024 TBa large data centre

Order from smallest to largest: byte, kilobyte, megabyte, gigabyte, terabyte and petabyte. Each next unit is 1024 times larger than the previous one.

How much do typical files and drives weigh?

Rough sizes help you place a conversion result in everyday context. Real values depend on quality and format, which is why we give ranges rather than single numbers.

File or driveTypical size
Email without attachmentsunder 100 KB
Smartphone photo2 to 5 MB
Music track in MP33 to 10 MB
An hour of HD video1 to 3 GB
A modern PC or console game50 to 150 GB
Laptop SSD256 GB to 2 TB

If you want to check how many such files fit on your drive, convert its capacity to megabytes in the converter above and divide it by the file size.

ADVERTISEMENT

When is this converter most useful?

Converting data units comes back in a few typical situations.

  1. Rarely met unit pairs

    Bytes to gigabytes or megabytes to petabytes convert here just as easily as the popular pairs. You pick both units with the buttons and read the result.
  2. Comparing the two standards

    The Unit standard toggle shows the same value counted by 1024 and by 1000. That lets you check where the gap between a drive label and the capacity shown by the system comes from.
  3. Limits in code and configuration

    Scripts, APIs and config files often expect values in bytes or kilobytes. A limit written down in megabytes converts here into the exact number you put in the configuration.
  4. Comparing file sizes

    Once you bring photos, videos and backups to one unit, you can easily compare them and judge what takes up the most space.

Frequently asked questions about data units

What is the order of the units from smallest to largest?

From smallest to largest: byte (B), kilobyte (KB), megabyte (MB), gigabyte (GB), terabyte (TB) and petabyte (PB). In the binary standard each next unit is 1024 times larger than the previous one, and in decimal 1000 times.

Which is bigger: KB, MB or GB?

The gigabyte is the largest of the three. 1 GB is 1024 MB, and each megabyte is 1024 KB, so one gigabyte holds over a million kilobytes.

How many kilobytes are in 1 MB, and how many megabytes in 1 GB?

In binary 1 MB is 1024 KB and 1 GB is 1024 MB. In the decimal standard it is 1000 KB and 1000 MB. The same multiplier applies to larger units: 1 TB is 1024 GB or 1000 GB, depending on the standard.

How many bytes are in 1 GB and 1 TB?

In the binary standard 1 GB is 1,073,741,824 bytes and 1 TB is 1,099,511,627,776 bytes. In decimal it is exactly 1,000,000,000 and 1,000,000,000,000 bytes.

Is 1000 KB the same as 1 MB?

Only in the decimal standard. In binary a full megabyte has 1024 KB, so 1000 KB is about 0.98 MB. You can compute both variants in this converter after switching the standard.

Why does a kilobyte have 1024 bytes and not 1000?

Computers count in the binary numeral system, and 1024 is two to the tenth power, the round number of that system closest to a thousand. The SI prefix kilo, however, means exactly 1000, and storage makers stick to that meaning. Both approaches remain in use to this day.

What is the difference between KB and KiB, or MB and MiB?

Kibibyte (KiB), mebibyte (MiB) and gibibyte (GiB) are the formal names of the binary values, introduced by the IEC to tell them apart from the decimal KB, MB and GB. 1 KiB is always 1024 bytes, while 1 kB in the SI sense is 1000 bytes. Day to day, most programs and people write KB while meaning the binary value, exactly like Windows does.

What comes after the terabyte?

Directly after the terabyte comes the petabyte (PB), followed by the exabyte (EB), zettabyte (ZB) and yottabyte (YB). In everyday use you mostly meet units up to the terabyte. Petabytes appear around data centres, and the larger units in statistics of global internet traffic.

How do you convert data units in Excel?

Match the multiplier to the pair of units: =A1*1024 turns gigabytes into megabytes, =A1/1024 megabytes into gigabytes, and =A1*1048576 gigabytes into kilobytes. In the decimal standard use 1000 instead of 1024. The same formulas work in Google Sheets.

Why does a 1 TB drive show about 931 GB in the system?

The maker describes the drive in decimal, so 1 TB means 1,000,000,000,000 bytes. Windows divides that number in binary, by 1,073,741,824, and shows about 931 GB. The capacity is intact; only the standard it was counted in changes.

How many photos or songs fit in 1 GB?

With photos of about 3 MB each, one gigabyte holds a little over 300 files, and with MP3 tracks of 5 MB about 200 songs. An hour of HD video can take up the whole gigabyte.

Which standard should I pick in this converter?

If you compare the result with what Windows shows, or with RAM capacity, pick Binary (1024). If you refer to a drive label, a carrier's offer or a value from macOS, switch to Decimal (1000). When in doubt, compute both variants and check which value matches your source.

Contact Arteon Agency

Have a question or suggestion?

If you have spotted an error in a table or have an idea to improve the converter, write to us. We reply to every message.

MB
Convert from
KB
Convert to
Unit standard

Binary (1024): what Windows and RAM use. Decimal (1000): what drive makers, macOS and search engines use. The standard applies to both fields at once.