Number Base Converter

Number Base Converter

Binary
Octal
Decimal
Hexadecimal
Nibbles (4-bit)
Bytes (8-bit)

What Is a Number Base?

A number base (or "radix") is how many unique digits a numbering system uses before it carries over into a new place value. Decimal (base 10), the system most people use daily, has 10 digits (0-9). Computers fundamentally work in binary (base 2, just 0 and 1), and programmers frequently use octal (base 8) and hexadecimal (base 16, using 0-9 and A-F) as compact, human-friendly shorthand for binary values.

This converter takes a value in any one of those four bases and instantly shows the equivalent value in all four - using JavaScript's BigInt type internally, so even very large numbers convert exactly, with no precision loss.

Reading the Bit Breakdown

The binary breakdown below the results groups the bits of the current value into nibbles (4 bits - exactly one hex digit each) and bytes (8 bits, the smallest addressable unit on most hardware), right-padded with leading zeros and spaced out so the grouping is easy to scan visually.

UnitSizeWhy it matters
Nibble4 bitsMaps to exactly one hexadecimal digit (0-F)
Byte8 bits (2 nibbles)The standard unit of memory addressing and file size

Why Use This Base Converter

Live, All Four At OnceType in any base and see binary, octal, decimal, and hex update together instantly - no separate lookups.
No Size LimitBuilt on BigInt arithmetic instead of 32-bit integers, so huge values convert exactly rather than silently overflowing.
Strict, Specific ValidationInvalid input is never silently truncated - the exact invalid character and its position are called out.
100% Client-SideNothing you type is ever uploaded to a server - every conversion runs locally in your browser.

Frequently Asked Questions

Does this tool send my numbers to a server?

No. Every conversion happens entirely in your browser using JavaScript's BigInt arithmetic - nothing is uploaded or sent to a server.

Why does this converter use BigInt instead of regular numbers?

JavaScript's ordinary numbers and bitwise operators only work reliably up to 32 bits. BigInt has no upper size limit, so very large values - far beyond what a 32-bit integer can hold - still convert correctly instead of silently overflowing or truncating.

Can I type a value with a 0x, 0b, or 0o prefix?

Yes. While the Decimal input base is selected, typing a prefixed value like 0xFF, 0b1010, or 0o17 automatically switches the selector to the matching base and converts it. When a specific base is explicitly selected, that selector is always the source of truth.