# Human Size Converter

Convert between bytes and human-readable file size formats (KB, MB, GB, TB)

> Canonical page: https://test.elysiatools.com/en/tools/human-size-converter

- **Category:** Converter

- **Keywords:** size, bytes, kb, mb, gb, tb, converter, file size, storage, format

## Overview

Converts a value between bytes, KB, MB, GB, and TB. The tool uses the binary convention: 1 KB = 1024 bytes, 1 MB = 1024 KB, and so on. It also prints all common units at once and supports 0–10 decimal places.

## Inputs

- **Value** (number): Enter value to convert...
- **From Unit** (select)
- **To Unit** (select)
- **Decimal Places** (number): Number of decimal places (0-10)

## When to use

- Translating raw byte counts from server access logs, database metrics, or APIs into readable units like MB or GB.
- Calculating exact byte or kilobyte limits required by server configuration files or upload limits.
- Standardizing storage reporting across infrastructure systems that log capacity in different units.

## How it works

- Enter the numeric value to convert into the Value field.
- Choose your source measurement in From Unit (Bytes, Kilobytes (KB), Megabytes (MB), Gigabytes (GB), or Terabytes (TB)).
- Choose your target measurement in To Unit (Bytes, Kilobytes (KB), Megabytes (MB), Gigabytes (GB), or Terabytes (TB)).
- Adjust Decimal Places between 0 and 10 to set rounding precision, then review the resulting converted text value.

## Use cases

- Application upload limit setup: Convert user-facing limits defined in megabytes into exact byte integers for backend validation middleware.
- Infrastructure disk space auditing: Aggregate server volume statistics reported in gigabytes into terabytes with set decimal precision for executive capacity reports.
- Web log payload analysis: Convert individual HTTP transfer log payload sizes from raw bytes to kilobytes or megabytes to identify oversized network requests.

## Frequently asked questions

### Which storage units can I convert between?

The tool supports Bytes, Kilobytes (KB), Megabytes (MB), Gigabytes (GB), and Terabytes (TB).

### How do I adjust the rounding precision?

Set the Decimal Places option to any integer between 0 and 10. The default precision is 2.

### Can I convert in both directions, from larger units to smaller units?

Yes. Any supported unit can be selected in either From Unit or To Unit, allowing conversion up or down the scale.

### Does this tool parse units directly from pasted text strings like '25MB'?

No. You must enter the numeric value in the Value field and select the corresponding unit from the From Unit dropdown.

### Does KB mean 1000 or 1024 bytes?

This tool uses binary multiples: 1 KB = 1024 bytes, 1 MB = 1024 KB, 1 GB = 1024 MB, and 1 TB = 1024 GB. That matches file sizes shown by most operating systems, but differs from SI decimal units where 1 kB = 1000 bytes.

## Related tools

- [Crontab Converter](https://test.elysiatools.com/en/tools/crontab-converter): Convert crontab format between standard cron and enhanced formats
- [Cron to Quartz Converter](https://test.elysiatools.com/en/tools/cron-quartz-converter): Convert standard cron expressions to Quartz cron format
- [Excel to CSV Converter](https://test.elysiatools.com/en/tools/excel-to-csv): Convert Excel file to CSV format, extracting data from the first worksheet
- [Excel to HTML Table Converter](https://test.elysiatools.com/en/tools/excel-to-html): Convert Excel file to HTML table format, extracting data from the first worksheet
- [Excel to Markdown Converter](https://test.elysiatools.com/en/tools/excel-to-markdown): Convert Excel file to Markdown table format, extracting data from the first worksheet
- [Excel to XML Converter](https://test.elysiatools.com/en/tools/excel-to-xml): Convert Excel file to XML format, extracting data from the first worksheet
- [Time Duration Formatter](https://test.elysiatools.com/en/tools/time-duration-formatter): Format time duration into various human-readable formats
- [AsciiMath LaTeX MathML Equation Converter](https://test.elysiatools.com/en/tools/asciimath-latex-mathml-equation-converter): Convert equations between AsciiMath, LaTeX and MathML: auto-detect the input format, produce canonical LaTeX, presentation MathML with an embedded TeX annotation, a best-effort AsciiMath back-translation, a screen-reader aria-label snippet (role=math), and a KaTeX HTML preview.

## Samples

- [Web Image Processing Python Samples](https://test.elysiatools.com/en/samples/web-image-processing-python): Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion
- [Android Image Processing Java Samples](https://test.elysiatools.com/en/samples/android-image-processing-java): Android Java image processing examples including reading/saving images, scaling, and format conversion
- [Android Image Processing Kotlin Samples](https://test.elysiatools.com/en/samples/android-image-processing-kotlin): Android Kotlin image processing examples including reading/saving images, scaling, and format conversion
- [Web Image Processing Rust Samples](https://test.elysiatools.com/en/samples/web-image-processing-rust): Web Rust image processing examples including image read/save, scaling, and format conversion
