| Decimal | Binary | Octal | Hexadecimal |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 1 | 1 | 1 | 1 |
| 8 | 1000 | 10 | 8 |
| 10 | 1010 | 12 | A |
| 16 | 10000 | 20 | 10 |
| 32 | 100000 | 40 | 20 |
| 64 | 1000000 | 100 | 40 |
| 128 | 10000000 | 200 | 80 |
| 255 | 11111111 | 377 | FF |
| 256 | 100000000 | 400 | 100 |
| 1024 | 10000000000 | 2000 | 400 |
| 65535 | 1111111111111111 | 177777 | FFFF |
1010β = 12β = 10ββ = AββStart with a small positive integer and compare all four representations before copying one. The example below converts decimal ten to binary, octal, and hexadecimal. Choose the field matching the source base rather than entering a hexadecimal letter into the decimal input. Keep the original value when checking a larger identifier or protocol field.
The converter uses BigInt for integer arithmetic, so ordinary floating point precision limits do not apply to whole numbers. Fractions and decimal exponents are outside this integer workflow. Browser memory still limits impractically large inputs. The displayed bit width is a convenience for common storage sizes; it does not create a signed integer type or serialize bytes in a particular endianness.
Decimal: 10
Binary: 1010
Octal: 12
Hexadecimal: A
This tool supports the four most commonly used number bases: Binary (base 2, digits 0-1), Octal (base 8, digits 0-7), Decimal (base 10, digits 0-9), and Hexadecimal (base 16, digits 0-9 and A-F).
This tool uses JavaScript BigInt for conversions, which supports arbitrarily large integers. There is no practical limit on the size of numbers you can convert, far exceeding standard 64-bit limits.
Processing runs in your browser. Choosing Share uploads the selected tool state; anyone with the link can open it. This interface does not offer account saving. Review the selection before creating a link. Closing the page does not delete a published share. Copying locally uses your clipboard and does not create a server share.
The bit length indicator shows the minimum standard bit width needed to represent the current number: 8-bit (0-255), 16-bit (0-65535), 32-bit, or 64-bit. This is useful for understanding data types in programming.
This tool converts integers with BigInt across binary, octal, decimal, and hexadecimal. It does not convert fractional parts or serialize bytes in a chosen endianness. A copied numeral is a textual representation. If a protocol expects fixed-width signed bytes, handle its width, sign, and byte order separately in your application.