Number Base Converter
Convert numbers of any size between binary, octal, decimal, hex and bases up to 36, see signed/unsigned readings, and turn text into hex bytes.
The same number written in binary (what the hardware sees), hex (two digits per byte: memory dumps, colors, error codes like 0x80070005), octal (Unix file modes like 755) and decimal. The fixed-width table shows how the same bits read as a signed or unsigned 8, 16, 32 or 64-bit integer, which is how -1 and 4294967295 can be the same value. Numbers can be any size, not just 64-bit.
Converted in your browser. Nothing is sent to tclient.com.
This page runs on your device (WebAssembly). To check, open your browser's developer tools (F12), go to the Network tab and convert something: no request is made.
Read as base 10 · 8 bits · 1 bytes
| Decimal | 255 | |
|---|---|---|
| Hex | ff | |
| Octal | 377 | |
| Binary | 1111 1111 | |
| 73 |
As a fixed-width integer
| Width | Bit pattern (hex) | Unsigned | Signed (two's complement) |
|---|---|---|---|
| 8-bit | ff | 255 | -1 |
| 16-bit | 00ff | 255 | 255 |
| 32-bit | 0000 00ff | 255 | 255 |
| 64-bit | 0000 0000 0000 00ff | 255 | 255 |
| 128-bit | 0000 0000 0000 0000 0000 0000 0000 00ff | 255 | 255 |