Number Base Converter
Convert between binary, octal, decimal, and hexadecimal in real time.
Includes bit pattern visualization.
What is a Number Base Converter?
A free online tool that converts binary, octal, decimal, and hexadecimal numbers in real time. It features an interactive bit pattern visualizer where you can click individual bits to toggle them and see the result instantly.
Perfect for IT certification exam prep, programming study, and firmware development.
How to Use
Select Input Base
Choose the number base of the value you want to convert from the dropdown.
Enter a Value
Type a number in the input field and all four bases are shown instantly, with the bit pattern visualized below.
Copy or Toggle Bits
Click the copy icon next to any result. Click individual bit cells to toggle them and explore bit manipulation interactively.
Glossary
- Binary (Base 2)
- A number system using only 0 and 1. The fundamental representation inside computers.
- Octal (Base 8)
- A base-8 number system using digits 0–7. Commonly used in Unix file permissions (e.g., chmod 755).
- Decimal (Base 10)
- The standard base-10 system using digits 0–9, used in everyday human counting.
- Hexadecimal (Base 16)
- A base-16 system using digits 0–9 and letters A–F. Used in color codes (#FF0000) and memory addresses.
- Bit
- A single binary digit (0 or 1). The smallest unit of information in computing.
- Byte
- A group of 8 bits. Can represent values from 0–255 (decimal) or 00–FF (hexadecimal).
- MSB (Most Significant Bit)
- The leftmost bit in a binary number, having the greatest positional value.
- LSB (Least Significant Bit)
- The rightmost bit in a binary number, determining whether the number is odd or even.
FAQ
- Q.Puis-je convertir des nombres négatifs ?
- Cet outil prend en charge les entiers non signés (non négatifs). La représentation en complément à deux pour les nombres négatifs n'est pas disponible dans la version actuelle.
- Q.Mes données sont-elles envoyées à un navigateur ?
- Non. Toutes les conversions utilisent les fonctions parseInt() et toString() intégrées de JavaScript entièrement dans votre navigateur.
- Q.Quel est le nombre maximum que je peux convertir ?
- Jusqu'à l'entier maximum sûr de JavaScript : 2⁵³ - 1 = 9 007 199 254 740 991.
- Q.Puis-je convertir des fractions décimales ?
- La version actuelle ne prend en charge que les entiers. La représentation à virgule flottante IEEE 754 pourrait être ajoutée dans une future mise à jour.
- Q.Combien de largeurs de bits le visualiseur prend-il en charge ?
- Vous pouvez basculer entre les modes d'affichage 8 bits, 16 bits et 32 bits.
Cas d'utilisation
📝 IT Certification Prep
Practice base conversion problems for CompTIA, CCNA, and other exams.
💻 Programming Study
Understand bit masks, shift operators, and bitwise operations visually.
🎨 Web Development
Convert CSS hex color codes to RGB decimal values and vice versa.
🔧 Firmware Development
Decode register values and memory dumps in hexadecimal.