Programmers move between number systems constantly — decimal, binary, hex, octal. Learn where each is used and convert between all four instantly, free in your browser.
Programmers live between number systems — decimal for humans, binary for hardware, hex for colours and memory addresses, octal for file permissions. Converting between them in your head is error-prone, and a wrong digit can mean a wrong colour or a broken bitmask. A base converter does it instantly and correctly.
| Base | Name | Digits | Where you see it |
|---|---|---|---|
| 2 | Binary | 0–1 | Bitmasks, flags, low-level data |
| 8 | Octal | 0–7 | Unix file permissions (e.g. 755) |
| 10 | Decimal | 0–9 | Everyday numbers |
| 16 | Hexadecimal | 0–9, A–F | Colours (#FF8800), memory addresses, hashes |
rwxr-xr-x to octal 755.| Decimal | Binary | Octal | Hex |
|---|---|---|---|
| 10 | 1010 | 12 | A |
| 255 | 11111111 | 377 | FF |
| 3735928559 | … | … | DEADBEEF |
0b for binary, 0o for octal, 0x for hex.Binary, octal, decimal, and hex are just different ways of writing the same number — and converting between them by hand invites mistakes. Enter a value once and read every base at a glance with the ToolsGravity Number Base Converter, right in your browser.