Convert Between Number Systems Online

Binary, decimal, and hexadecimal number systems are used constantly in computing: bit flags in system APIs are documented in binary, memory addresses and color codes use hexadecimal, and everyday arithmetic uses decimal. Converting manually between these bases is error-prone — especially with large values — and slows down debugging work. devtoolkit.sh provides dedicated converters for the most common base conversions. Binary to Decimal converts 0-and-1 bit strings to their decimal equivalents, correctly handling both unsigned values and sign-and-magnitude representations. Decimal to Hex turns a decimal integer into its hexadecimal equivalent — useful when working with CSS colors, memory addresses, file offsets, and protocol values. Hex to Decimal reverses the operation for reading hex values from documentation, debuggers, or binary file formats. All converters support large integers beyond the 32-bit range, which matters when working with 64-bit memory addresses or large bitmasks.

FAQ

Why do programmers use hexadecimal?
Hexadecimal is a compact way to represent binary data. Each hex digit maps exactly to 4 binary bits (a nibble), so a byte is always two hex characters. This makes hex much shorter than binary while still mapping cleanly to the underlying bit pattern.
How do I convert a negative decimal to binary?
The most common representation is two's complement. To represent -N in an N-bit word: take the binary of N, flip all bits, and add 1. The converter handles unsigned representation; for two's complement you need to specify the word size.
What is the largest value these converters support?
The converters use JavaScript's BigInt where available, supporting arbitrarily large integers. Standard number precision limits (2^53) apply when BigInt is not used, so extremely large values may lose the lowest bits.