Numbers & Dates

Number Base Converter

Convert numbers between binary, decimal, hexadecimal and octal instantly — type in any field and see all representations update live.

Open Base Converter →
Looks like you're using an ad blocker. Devbin is free — ads help keep it running.

Number Base Reference

DecimalBinary (2)Hex (16)Octal (8)
0000
101010A12
151111F17
16100001020
25511111111FF377
256100000000100400

How to Use It

1

Open the tool

Go to Numbers & Dates and scroll to the Number Base Converter.

2

Type in any field

Enter your number in any base — decimal, binary (0s and 1s only), hex (0–9, A–F) or octal (0–7).

3

View all results

All other base representations update instantly.

4

Copy your value

Click the copy button next to the base you need.

Pro Tips

💡In JavaScript: parseInt('FF', 16) converts hex to decimal. (255).toString(16) converts decimal to hex. (255).toString(2) converts to binary.
💡Hex literals in code use 0x prefix: 0xFF === 255. Binary literals use 0b: 0b1111 === 15.
💡Unix file permissions use octal: chmod 755 = owner rwx (7), group rx (5), others rx (5).

Frequently Asked Questions

What is binary (base 2)?
Uses only 0 and 1. Each digit is a power of 2. Decimal 10 = binary 1010 (8+2). The fundamental number system used by all digital computers.
What is hexadecimal?
Uses 0–9 and A–F (16 digits). One hex digit = 4 bits. Decimal 255 = FF. Widely used for color codes, memory addresses and encoding.
What is octal used for?
Unix file permissions. chmod 755 sets rwx for owner, rx for group and others. Octal digits 0–7 each represent 3 bits.
How do I convert in JavaScript?
parseInt('ff', 16) → 255. (255).toString(16) → "ff". parseInt('1010', 2) → 10. (10).toString(2) → "1010".

Convert number bases now

Open the Number Base Converter and translate any value between binary, decimal, hex and octal instantly.

Open Base Converter →