Skip to main content
AI-PoweredDecision ToolsFree — No sign-up

Number Base Converter

Type 255 and see 11111111 in binary, 377 in octal, and FF in hex -- all at once. Enter in any base and get the other three instantly. If you work with CSS hex colors, Unix file permissions (chmod 755), IP subnets, or anything in computer science, this saves you from doing the conversion in your head.

By SplitGenius TeamUpdated February 2026

255 in decimal = 11111111 in binary = 377 in octal = FF in hexadecimal. Enter any number in binary, octal, decimal, or hex and see all four representations instantly.

Input Base

Select the number system your input is written in.

Base 10 — digits 0 through 9

Enter Your Number

Type a decimal number. Use digits 0 through 9.

Enter a non-negative integer in decimal format

How This Calculator Works

1

Enter Your Details

Fill in amounts, people, and preferences. Takes under 30 seconds.

2

Get Fair Results

See an instant breakdown with data-driven calculations and Fairness Scores.

3

Share & Settle

Copy a shareable link to discuss results with everyone involved.

Frequently Asked Questions

People Also Calculate

Explore 182+ Free Calculators

Split rent, bills, tips, trips, wedding costs, childcare, and more.

Browse All Calculators

Binary, Octal, Decimal, and Hexadecimal Explained

Every number system works the same way — the only difference is how many digits it uses before carrying to the next place. Decimal uses 10 digits (0–9), binary uses 2 (0–1), octal uses 8 (0–7), and hexadecimal uses 16 (0–9 plus A–F). Once you see the pattern, converting between them is straightforward.

Binary (base 2) is the foundation of all computing. Every processor instruction, every byte of memory, and every network packet is ultimately a sequence of 0s and 1s. The binary number 1101 means 1×8 + 1×4 + 0×2 + 1×1 = 13 in decimal.

Hexadecimal (base 16) is shorthand for binary. Each hex digit maps to exactly 4 bits, making it compact and easy to read. The byte 11111111 in binary is FF in hex — two characters instead of eight.

Octal (base 8) maps each digit to 3 bits. It was common in early computing (PDP-8, Unix) and still appears in Unix file permissions today.

Binary-to-Hex Quick Reference

HexBinaryDecimalOctal
0000000
1000111
2001022
3001133
4010044
5010155
6011066
7011177
81000810
91001911
A10101012
B10111113
C11001214
D11011315
E11101416
F11111517

ASCII Characters and Their Hex/Binary Values

Every character you type has a numeric code. The letter “A” is 65 in decimal, 41 in hex, 01000001 in binary. Lowercase “a” is 97 decimal, 61 hex. The space character is 32 decimal, 20 hex. Knowing these mappings helps when debugging network protocols, reading hex dumps, or working with character encodings.

CharDecimalHexBinary
Space322000100000
0483000110000
9573900111001
A654101000001
Z905A01011010
a976101100001
z1227A01111010

CSS Hex Color Codes Are Base-16 Math

When you write #FF5733 in CSS, you are writing three hexadecimal numbers: FF for red (255), 57 for green (87), and 33 for blue (51). Each pair ranges from 00 (0 decimal, no intensity) to FF (255 decimal, full intensity). The shorthand #F00 expands to #FF0000 — pure red.

Understanding hex means you can read and tweak colors without a color picker. Need a slightly darker blue? #0000CC (204 decimal) is darker than #0000FF (255 decimal). Need 50% opacity? Add 80 at the end (128 in decimal, half of 256).

ColorHexR, G, B (decimal)Binary (R channel)
Red#FF0000255, 0, 011111111
Green#00FF000, 255, 000000000
Blue#0000FF0, 0, 25500000000
White#FFFFFF255, 255, 25511111111
Black#0000000, 0, 000000000
SplitGenius Navy#1E3A5F30, 58, 9500011110
SplitGenius Teal#0C9B8A12, 155, 13800001100

Unix File Permissions Use Octal

When you run chmod 755 script.sh, those three digits are octal numbers. Each digit represents 3 bits: read (4), write (2), execute (1). The digit 7 = 4+2+1 = rwx (all permissions). The digit 5 = 4+0+1 = r-x (read and execute, no write). So 755 means the owner gets full control, while the group and others can read and run but not modify.

OctalBinaryPermissionMeaning
0000---No permissions
1001--xExecute only
4100r--Read only
5101r-xRead + execute
6110rw-Read + write
7111rwxFull (read + write + execute)

Common permission patterns: 644 (owner reads/writes, everyone else reads — typical for files), 755 (owner full, others read/execute — typical for directories and scripts), 600 (owner only — SSH keys and secrets), and 777 (everyone does everything — almost never what you want).

For percentage-based math and proportion problems, the percentage calculator handles all three common modes. For fraction simplification and mixed numbers, the fraction calculator converts between forms instantly.