🔢 Number Base Converter

Convert between binary, octal, decimal, and hexadecimal instantly. Type in any field and all others update live.

Convert Number

Binary
Base 2 · 0-1
Octal
Base 8 · 0-7
Decimal
Base 10 · 0-9
Hex
Base 16 · 0-9, A-F
Invalid input for the selected base.

Quick Reference

DecBinOctHex
0000
81000108
16100002010
64100000010040
1281000000020080
25511111111377FF
655361000000000000000020000010000
📚
Level up your dev skills
Browse programming books → Browse on Amazon
As an Amazon Associate we earn from qualifying purchases.

Related Tools

JSON Formatter
Developer Tools
Base64 Encoder
Developer Tools
UUID Generator
Developer Tools
HEX to RGB Converter
Developer Tools

Frequently Asked Questions

Why do computers use binary?

Computers use binary because transistors — the fundamental building blocks — have two states: on (1) and off (0). This maps perfectly to binary. Everything a computer does, from adding numbers to displaying images, ultimately reduces to manipulating sequences of 0s and 1s.

Why is hexadecimal used in programming?

Hex is used because one hex digit represents exactly 4 binary bits (a nibble), so two hex digits = one byte. This makes it far more human-readable than binary while still mapping cleanly to how computers work internally. It's widely used for memory addresses, colours (#FF6600), and byte-level data.

How do I convert binary to decimal manually?

Each binary digit represents a power of 2, starting from the right. For 1011: (1×8) + (0×4) + (1×2) + (1×1) = 11. The tool does this instantly for any number.

What is octal used for?

Octal was historically used in older computing systems. Today it's most commonly seen in Unix/Linux file permissions (e.g., chmod 755 means rwxr-xr-x). Each octal digit represents exactly 3 binary bits.

Is there a limit to the size of number I can convert?

JavaScript uses 64-bit floating-point numbers (IEEE 754), which means integers are exact up to 2^53 − 1 (about 9 quadrillion). Beyond that, precision may be lost. For very large numbers, use a dedicated big-integer library.