Number Base Converter
Guide: Linux File Permissions and chmod Explained
Bits needed: 8 · Bytes: 1
Binary, grouped: 1111 1111
Hex, grouped: FF
Nothing you enter or choose here leaves your device. This tool runs in your browser.
One number, four faces
The same quantity can be written in different bases. The converter updates every box as you type in one of them:
| Decimal | Binary | Octal | Hexadecimal |
|---|---|---|---|
| 10 | 1010 | 12 | A |
| 64 | 1000000 | 100 | 40 |
| 255 | 11111111 | 377 | FF |
| 1000 | 1111101000 | 1750 | 3E8 |
| 65535 | 1111111111111111 | 177777 | FFFF |
Why programmers use them
- Binary shows the bits themselves. It's how flags, masks and permissions are really stored.
- Hexadecimal packs four bits into each digit, so a byte is exactly two characters. It's why colors are written like
#6366F1and why memory addresses and hashes look the way they do. - Octal packs three bits into each digit. It survives mainly in Unix file permissions, where
755is three digits of three bits each. See the chmod calculator. - Base 36 uses 0 to 9 and a to z, the most compact text-safe number. It's a common way to build short ids, so 123456789 becomes 21i3v9.
Converting by hand
To go from decimal to another base, divide repeatedly by the base and read the remainders from last to first. For 255 into hexadecimal: 255 divided by 16 is 15 remainder 15, and 15 divided by 16 is 0 remainder 15. Both remainders are 15, which is F, so the answer is FF.
To go the other way, multiply each digit by its place value. Binary 1101 is 8 plus 4 plus 0 plus 1, which is 13. The place values in binary are 1, 2, 4, 8, 16, 32, 64, 128, and so on, each double the one before.
Prefixes and typing tips
0xmarks hexadecimal,0bmarks binary and0omarks octal. All three are accepted.- Spaces, commas and underscores in the number are ignored, so
1111_0000and1111 0000both work. - Letters in hexadecimal and base 36 can be upper or lower case.
Limits
The tool uses arbitrary-precision whole numbers, so a number with hundreds of digits converts exactly, with no rounding. Negative numbers are shown with a minus sign rather than in two's complement, which is how a computer stores them in fixed-size bytes. Fractions and decimals aren't supported.
To see the bytes behind letters, use the text to binary converter. For IP addresses written in binary, the subnet calculator shows masks both ways.
Try these
- Read an IP address in binary. The octet 192 is 11000000 and 168 is 10101000, which is why masks look like runs of ones.
- Break up a hex color. In
#6366F1, 63 is 99, 66 is 102 and F1 is 241, giving rgb(99, 102, 241). - Decode a permission. Octal 7 is binary 111, 5 is 101 and 4 is 100, which is rwx, r-x and r--.
- Check a flag. If a setting is stored as 13, in binary it's 1101, so options 1, 4 and 8 are on and option 2 is off.
Written by Akinrinmade Michael · Updated October 24, 2026
How to use
- 1Type a number into any of the boxes.
- 2The other boxes update straight away.
- 3Change the last box to any base from 2 to 36.
- 4Click Copy next to the value you need.
Frequently asked questions
Can it convert very large numbers?
Yes. It uses arbitrary-precision integers, so numbers with hundreds of digits convert exactly, with no rounding.
Can I type prefixes like 0x or 0b?
Yes. 0x for hexadecimal, 0b for binary and 0o for octal are accepted. Spaces, commas and underscores in the number are ignored.
Does it handle negative numbers or fractions?
Negative whole numbers are shown with a minus sign, not in two's complement. Fractions and decimals aren't supported.
What do base 36 digits look like?
Base 36 uses 0-9 and then a-z, so z means 35. It is often used to make short IDs.
Read the guides
Learn how this works and how to get the most from it.
Developer
Linux File Permissions and chmod Explained
Understand read, write and execute permissions, what 755 and 644 mean, and how to use chmod with octal and symbolic modes.
4 min read
Developer
Subnet Masks and CIDR Notation Explained
What /24 and 255.255.255.0 mean, how to count hosts in a subnet, and how to split a network into smaller ones.
3 min read
Related tools
Base64 & URL Encoder / Decoder
Encode and decode Base64 and URL-encoded text instantly.
Hash Generator
Generate MD5, SHA-1, SHA-256 and SHA-512 hashes and HMACs.
Color Converter & Contrast Checker
Convert HEX, RGB and HSL and check WCAG contrast ratios.
Unit Converter
Convert length, weight, temperature, volume, speed and more.