Explore our collection of 150+ developer tools, PDF editors, and image converters. Everything runs locally in your browser.
Related Developer Tools
Ubify Core Engineering Team
SOFTWARE ENGINEERS & SYSTEMS ARCHITECTS
About This Tool
The number base converter translates numerical representations across standard positional numeral systems used in computer architecture, memory addressing, and embedded systems programming. By parsing an input string according to its source radix, the utility immediately computes the equivalent values in binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16).
### Positional Radix Mathematics
A number with digits $d_k d_{k-1} \dots d_0$ in base $b$ evaluates to: $\text{Value} = \sum_{i=0}^{k} d_i \times b^i$
When converting between bases: - **Base 2 (Binary):** Fundamental bit representation for boolean logic and memory states. - **Base 8 (Octal):** Compact three-bit groupings historically common in UNIX file permissions. - **Base 10 (Decimal):** Standard human decimal arithmetic. - **Base 16 (Hexadecimal):** Compact byte representation where each hex digit represents exactly 4 bits (one nibble).
### Worked Numeric Example
Converting the decimal value **255** (source base 10): 1. **Binary (base 2):** $255 = 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 \rightarrow$ **`11111111`** (8 bits). 2. **Octal (base 8):** $\lfloor 255 / 64 \rfloor = 3$, remainder 63; $\lfloor 63 / 8 \rfloor = 7$, remainder 7 $\rightarrow$ **`377`**. 3. **Decimal (base 10):** **`255`**. 4. **Hexadecimal (base 16):** $255 = (15 \times 16) + 15 = \text{FF}_{16} \rightarrow$ **`FF`**.
If you change the input base to 16 and enter **`1A`**, the tool parses $(1 \times 16) + 10 = 26$ in decimal, `11010` in binary, and `32` in octal.
### Client-Side Execution Note
Parsing uses native JavaScript `parseInt(input, base)` and `Number.prototype.toString(radix)` directly inside your browser. No numeric inputs or conversion requests are sent over the network.
How to Use
- 1
Enter an integer into the input field (e.g., 255 or 1A).
- 2
Select the source radix base of your input (defaults to Base 10 Decimal, adjustable up to Base 36).
- 3
Examine the simultaneous result cards for Binary (2), Octal (8), Decimal (10), and Hexadecimal (16).
- 4
Click the copy button adjacent to any desired radix format to paste into your source code.
Frequently Asked Questions
What is the maximum number base supported by this tool?
The converter supports integer radices from base 2 (binary) up to base 36 (digits 0–9 followed by letters A–Z).
Does the tool handle negative numbers and decimals?
The conversion engine is designed for standard non-negative integer values. Floating-point fractional radix conversions are not currently supported.
Are any numbers uploaded to an external server?
No. Conversions calculate synchronously in memory using client-side JavaScript. No data is stored or transmitted.