Security & Utilities

Number Base & Byte Converter

Convert arbitrary-precision BigInt numbers across Binary, Octal, Decimal, and Hex plus SI/IEC bytes.

Runs 100% locally in your browser

BigInt Radix Converter (Binary • Octal • Decimal • Hex)

Quick Constants:
Grouped: 255
Grouped: 0xFF
Grouped: 1111 1111
Grouped: 0o377
Bit Length: 8 bitsuint8: Fitsuint16: Fitsuint32: Fitsuint64: Fits

Storage & Memory Byte Converter (SI Decimal vs IEC Binary)

Est. @ 100 Mbps: 1m 26sEst. @ 1 Gbps: 8.59 s

What Does the Number Base & Byte Converter Do?

The Number Base & Byte Converter combines two everyday systems-engineering calculators into one workspace: a BigInt radix converter (Binary, Octal, Decimal, Hexadecimal) and an SI vs IEC storage/network byte unit converter.

Because JavaScript's standard Number type loses integer precision above 2^53 - 1 (9,007,199,254,740,991), our radix engine uses native arbitrary-precision BigInt arithmetic so 64-bit, 128-bit, and 256-bit values convert with zero rounding errors.

The byte converter displays side-by-side Decimal SI units (powers of 1,000: KB, MB, GB, TB) and Binary IEC units (powers of 1,024: KiB, MiB, GiB, TiB), along with estimated network transfer times.

How to Use This Tool

  1. Type a number into any of the Decimal, Hexadecimal, Binary, or Octal fields (underscores and 0x/0b/0o prefixes are accepted) to update all other bases instantaneously.
  2. Review grouped nibble/byte formatting and uint8–uint64 register fit badges.
  3. In the Byte Converter panel below, enter a size and unit to compare all SI and IEC equivalents and click any card to copy.

Common Engineering Use Cases

  • Inspecting 64-bit memory addresses, Snowflake IDs, bitmasks, or cryptographic constants in hexadecimal and binary.
  • Reconciling cloud disk quotas, Docker memory limits (MiB/GiB), and SSD marketing capacities (GB/TB).
  • Checking whether an integer fits inside uint8, uint16, uint32, or uint64 before choosing a database or wire-protocol integer type.

Practical Developer Examples

Why a '1 TB' Drive Shows as 931.32 GiB in Linux/Windows

Storage manufacturers use decimal terabytes (10^12 bytes), whereas operating systems often report binary gibibytes (2^30 bytes).

Input
1 TB (1,000,000,000,000 Bytes)
Output
931.3226 GiB (0.9095 TiB)

Common Mistakes & Pitfalls to Avoid

  • Calling parseInt(hex, 16) on 64-bit identifiers in JavaScript, silently corrupting the lowest bits past 53 bits of significand precision.
  • Confusing network bandwidth megabits per second (Mbps) with megabytes per second (MB/s), which differ by a factor of 8.

Frequently Asked Questions

What is the difference between MB and MiB?

1 Megabyte (MB) in the SI decimal standard equals 1,000,000 bytes (10^6), while 1 Mebibyte (MiB) in the IEC binary standard equals 1,048,576 bytes (2^20 = 1,024 × 1,024).