Unit & Number Base Converter

Convert between decimal, hex, binary, and octal number systems. Includes a developer unit converter for bytes (KB, MB, GB), CSS units (px, rem, em), and time durations with Laravel-style duration string output.

Base Font Size: px

Why use a unit and base converter?

Web development involves constantly switching between different measurement systems and number bases. Whether you're converting a hexadecimal colour code to decimal, calculating REM units from a Figma design in pixels, or estimating the size of a database export in GB, having all these converters in one place saves time. This tool provides instant, bi-directional conversion, meaning you can type in any field and see the results updated everywhere else immediately.

Understanding binary vs decimal storage units

A common point of confusion in computing is the difference between decimal (SI) and binary (IEC) units. In this tool, we use the binary system where 1 KB = 1024 bytes, which is how most operating systems and development environments measure memory and disk space. In Laravel, when you use the max:2048 validation rule for file uploads, it refers to kilobytes where 1 KB is 1024 bytes, matching the output provided here.