Numeric Bases Converter
Convert numbers between binary (base 2), decimal (base 10), hexadecimal (base 16) and octal (base 8). Type in any field for instant conversion in the others.
Quick reference table
| Decimal | Binário | Hex | Octal |
|---|---|---|---|
| 0 | 0000 | 0 | 0 |
| 1 | 0001 | 1 | 1 |
| 2 | 0010 | 2 | 2 |
| 3 | 0011 | 3 | 3 |
| 4 | 0100 | 4 | 4 |
| 5 | 0101 | 5 | 5 |
| 6 | 0110 | 6 | 6 |
| 7 | 0111 | 7 | 7 |
| 8 | 1000 | 8 | 10 |
| 9 | 1001 | 9 | 11 |
| 10 | 1010 | A | 12 |
| 11 | 1011 | B | 13 |
| 12 | 1100 | C | 14 |
| 13 | 1101 | D | 15 |
| 14 | 1110 | E | 16 |
| 15 | 1111 | F | 17 |
How do number bases work?
In positional numeral systems, the base tells you how many distinct symbols the system has. A digit's value changes with the position it sits in, which corresponds to a power of the base.
- Binary (base 2): uses only 0 and 1. Fundamental for computers (bits).
- Decimal (base 10): everyday system with digits 0 to 9.
- Hexadecimal (base 16): uses 0-9 and A-F. Compact for representing bytes (1 byte = 2 hex digits).
- Octal (base 8): uses digits 0-7. Each octal digit equals 3 binary bits.
Convert between binary, decimal, hex and octal
Anyone who codes or studies computing is forever switching number bases. There's everyday decimal, the machine's binary, the hexadecimal of colours and memory addresses, the octal of permissions. This converter puts the same number in all four bases at the same time.
Type the value in any of the fields, be it base 2, 10, 16 or 8, and the rest fill themselves in with the conversion. Rather than doing successive division by hand or turning to the scientific calculator, you see every representation at once, ready to use.
The calculation happens in the browser. It works as a quick reference for programming, digital electronics, networking and computing studies.
Frequently asked questions
Can it convert negative or fractional numbers?
What does the 8 bits · 1 byte in the corner mean?
Why does a very large number come back different from what I typed?
Read more on this
Related Tools
Number Base Converter
Convert numbers between binary (base 2), octal (base 8), decimal (base 10) and hexadecimal (base 16). Instant bidirectional conversion.
Text ↔ Hex Converter
Convert ASCII text to hexadecimal values and vice versa, character by character. Useful for debugging, encoding and protocol analysis.
Text ↔ Decimal Converter
Convert ASCII text to decimal codes and vice versa. Each character is represented by its decimal value in the ASCII table.
Binary ↔ Hexadecimal Converter
Convert numbers between binary and hexadecimal without going through decimal. Shows nibble (4-bit) grouping.
IPv4 Format Converter
Convert IPv4 addresses between formats: dotted decimal (192.168.1.1), integer (3232235777), hexadecimal (0xC0A80101) and binary. Everything in your browser.
Color Converter
Convert colors between HEX, RGB, HSL and CMYK instantly. Enter any format and get equivalents in the others. Live color preview.