Number Base Converter — Binary, Octal, Decimal, Hex
- Convert between binary (2), octal (8), decimal (10), and hex (16) in one tool
- All four bases update simultaneously as you type
- Copy any output with one click
- No signup, no install — runs entirely in your browser
Table of Contents
The Chameleon Number Base Converter handles all four standard number bases in one place. Type a value in binary, octal, decimal, or hex — select which base you are entering — and see the equivalent in every other base instantly. No need to run separate tools for binary-to-decimal, decimal-to-hex, and hex-to-binary. All four conversions happen in a single view, at the same time.
The Four Bases This Tool Supports
| Base | Name | Valid Digits | Common Use |
|---|---|---|---|
| 2 | Binary | 0, 1 | Low-level computing, bit manipulation |
| 8 | Octal | 0–7 | Unix file permissions, legacy systems |
| 10 | Decimal | 0–9 | Everyday numbers, most programming contexts |
| 16 | Hexadecimal | 0–9, A–F | Memory addresses, colors, error codes |
Select the source base that matches your input value, type the number, and read all four results. To convert in the other direction, just switch the input base.
How to Use the Converter
- Open the Number Base Converter
- Click the From Base dropdown and select your input base
- Type your number in the input field — only valid digits for the selected base are accepted
- All four outputs (Binary, Octal, Decimal, Hex) update immediately as you type
- Click Copy next to any output to copy it to your clipboard
The bit length indicator shows how many bits the current value requires — useful when working within fixed-width registers or data types.
Sell Custom Apparel — We Handle Printing & Free ShippingConversions You Can Do With This Tool
Any of these conversions work in a single step — no chaining, no intermediate steps:
- Binary to decimal, decimal to binary
- Hex to decimal, decimal to hex
- Binary to hex, hex to binary
- Octal to decimal, decimal to octal
- Octal to binary, binary to octal
- Octal to hex, hex to octal
All 12 directional conversions between the four bases are available in one tool because all four outputs are always shown simultaneously.
Limitations to Know
This converter handles whole integers only. It does not support:
- Fractional values (no 0.1011 in binary)
- Negative numbers or two's complement representation
- Custom bases beyond the four supported (no base 3, base 36, etc.)
- Text-to-binary (ASCII/Unicode encoding) — for that, use a dedicated text-to-binary tool
The maximum safe integer is approximately 9 quadrillion (2^53 - 1). This covers virtually all practical integer conversion needs in programming and system administration.
Related Tools for More Conversion Needs
If you need conversions beyond the four number bases:
- Hex color codes: The HEX RGB Converter converts between hex color codes and RGB/HSL values — designed specifically for web and design work
- Unit conversion: The Unit Converter handles length, weight, temperature, and other physical units
- Text and encoding: The base64 encoder/decoder handles text-to-base64 conversion
The number base converter is specifically built for the binary/octal/decimal/hex conversions that come up in programming, networking, hardware, and computer science study.
Convert Between Any Two Bases Now
Select your input base, type your number, and see binary, octal, decimal, and hex all at once — instantly, free, no signup.
Convert Numbers FreeFrequently Asked Questions
Can this tool convert any base to any base?
It supports the four most common bases: binary (2), octal (8), decimal (10), and hexadecimal (16). It does not support arbitrary bases like base 3, base 7, or base 36. For those, you would need a more specialized tool.
Does entering a number automatically detect the base?
No — you need to select the source base manually using the dropdown. This prevents ambiguous interpretations (a number like "10" could be binary, octal, decimal, or hex depending on the context).
What is the bit length shown below the outputs?
The bit length indicator shows the minimum number of binary bits needed to represent the value you entered. For example, decimal 255 (binary 11111111) shows 8 bits. This is useful when you need to fit a value into a specific register size or data type.

