Roman Numeral Converter
Convert between Roman numerals and decimal numbers. Supports values from 1 to 3,999.
Convert numbers between binary, octal, decimal, and hexadecimal. Supports bases 2 through 36.
| Step | Dividend | / 16 | Quotient | Remainder | Digit |
|---|---|---|---|---|---|
| 1 | 255 | / 16 | 15 | 15 | F |
| 2 | 15 | / 16 | 0 | 15 | F |
| Decimal | Binary | Octal | Hex | Description |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | Zero |
| 1 | 1 | 1 | 1 | One |
| 7 | 111 | 7 | 7 | Max 3-bit |
| 15 | 1111 | 17 | F | Max nibble (4-bit) |
| 127 | 1111111 | 177 | 7F | Max signed byte |
| 255 | 11111111 | 377 | FF | Max unsigned byte |
| 256 | 100000000 | 400 | 100 | 2^8 |
| 1,023 | 1111111111 | 1777 | 3FF | Max 10-bit |
| 4,096 | 1000000000000 | 10000 | 1000 | 2^12 |
| 65,535 | 1111111111111111 | 177777 | FFFF | Max 16-bit |
| 16,777,215 | 111111111111111111111111 | 77777777 | FFFFFF | Max 24-bit (RGB) |
Enter multiple base-10 numbers separated by spaces or commas
The Number Base Converter converts integers between any number bases from 2 to 36. Enter a number in one base and see its representation in binary (base 2), octal (base 8), decimal (base 10), hexadecimal (base 16), and any custom base.
Number bases are fundamental in computer science. Binary is the language of computers. Hexadecimal provides a compact way to represent binary data. Octal was historically used in Unix file permissions.
This calculator handles conversions in both directions and supports bases up to 36, where digits beyond 9 use letters A–Z. Enter your value, specify its base, and review the converted forms.
Manual base conversion requires repeated division and is error-prone. This calculator converts between all common bases and supports custom bases up to 36.
To convert base b to decimal:
d = Σ(digitᵢ × b^i) for i = 0, 1, ...
To convert decimal to base b:
Repeatedly divide by b and collect remainders.Result: Binary: 11111111, Hex: FF
255 in binary: 255 / 2 repeatedly gives 11111111. In hex: 255 / 16 = 15 remainder 15, so FF.
Every digital circuit operates in binary. Logic gates (AND, OR, NOT) process single bits. Complex processors chain billions of these gates to perform calculations.
CSS colors use hex: #FF8800 means Red=255, Green=136, Blue=0. Each pair of hex digits represents one byte (0–255).
Unix file permissions use octal: 755 means rwxr-xr-x. Each digit represents 3 permission bits (read, write, execute) for owner, group, and others.
A solid grasp of number bases is fundamental for anyone working with low-level programming or network protocols.
Last updated:
A number base (radix) is the number of unique digits used in a positional numeral system. Decimal uses 10 digits (0–9), binary uses 2 (0–1), hex uses 16 (0–F).
Computer hardware uses transistors that have two states (on/off). Binary naturally maps to these states. All higher-level representations are built on binary.
Hex is compact: one hex digit equals 4 bits. A byte (8 bits) is two hex digits. This makes hex ideal for representing memory addresses, colors, and binary data.
Divide by 2 repeatedly, recording remainders. Read the remainders bottom-to-top. For 13: 13/2=6r1, 6/2=3r0, 3/2=1r1, 1/2=0r1. Binary: 1101.
Base 36 uses digits 0–9 and letters A–Z, giving 36 symbols. It is the highest base using single ASCII characters and is used in URL shorteners and compact identifiers.
Binary (2) for hardware, octal (8) for Unix permissions, decimal (10) for humans, hex (16) for memory and colors. Base 64 is used for encoding binary data in text.
Convert between Roman numerals and decimal numbers. Supports values from 1 to 3,999.
Convert numbers to and from scientific notation. Transform large or small numbers into a × 10^n format.