Number Base Converter — Binary, Hex
Convert numbers between decimal, binary, hexadecimal, octal and Roman numerals. Instant and free. Ideal for programmers and CS students.
Read the complete guide: Number Base Converter — Complete Guide →
How to use it
- Pick the starting system (decimal, binary, hexadecimal, octal or Roman numerals) and type the number.
- Read the conversions into the other systems straight away.
- For Roman numerals, enter a positive whole number.
- Copy the result you need.
Practical examples
- The decimal number 255 is FF in hexadecimal, 11111111 in binary and 377 in octal.
- The year 2026 in Roman numerals is MMXXVI; 1994 is MCMXCIV.
- The colour #6D5BD0 uses three hexadecimal bytes: 6D = 109, 5B = 91, D0 = 208.
Tips and common mistakes
- In hexadecimal the letters A-F stand for 10 to 15, and upper and lower case make no difference.
- Roman numerals have no zero and, in current usage, stop at 3,999 (MMMCMXCIX).
- When you write code, remember the prefixes: 0x for hexadecimal, 0b for binary, 0o or 0 for octal, depending on the language.
When you need it
It serves computer science and electronics students, anyone who programs or analyses binary data, anyone working with web colours and memory addresses, and anyone who wants to write a year or a chapter correctly in Roman numerals.
Units & Reference Values
| Unit | Equivalent | Common use |
|---|---|---|
| Binary (Base 2) | Digits: 0, 1 | Computer hardware, data |
| Octal (Base 8) | Digits: 0-7 | Unix file permissions |
| Decimal (Base 10) | Digits: 0-9 | Human everyday use |
| Hexadecimal (Base 16) | Digits: 0-9, A-F | Colors, memory, debugging |
| Roman Numerals | I, V, X, L, C, D, M | Historical and formal use |
Frequently Asked Questions
How do you convert decimal to binary?
Divide the number by 2 repeatedly, recording the remainders. Read the remainders from bottom to top. Example: 13 ÷ 2 = 6 r1, 6 ÷ 2 = 3 r0, 3 ÷ 2 = 1 r1, 1 ÷ 2 = 0 r1. Result: 1101.
Why do computers use binary instead of decimal?
Electronic switches (transistors) naturally have two states: conducting (1) and non-conducting (0). Building reliable circuits with 10 distinct voltage levels (for decimal) is far harder and more error-prone than two states.
What is hexadecimal used for?
Hexadecimal (hex) compactly represents binary: each hex digit represents exactly 4 binary bits. This makes hex ideal for memory addresses (0x7FFF1234), color codes (#A3B2C1), and debugging binary data.
Read the complete guide: Number Base Converter — Complete Guide →
Last updated:
Related tools
Digital Data Colors Calculator Dev Tools QR Code Text Tools
Home · All Guides · About Us · What's new · Contact · Privacy Policy
Language: Italiano · English · Español · Français · Deutsch · Português · 中文 · 日本語