Everyday Math Essentials
Cover quick calculations for percentages, fractions, averages, and ratios used in school, shopping, and spreadsheets.
Convert between Binary, Decimal, Hexadecimal, and Octal
| Decimal | Binary | Octal | Hexadecimal |
|---|
A number base (or radix) is the number of unique digits used to represent numbers in a positional numeral system. Different bases are used for different purposes in mathematics, computing, and everyday life.
Uses only 0 and 1. Each digit represents a power of 2. Binary is the fundamental language of computers and digital electronics.
Example: 1010โ = (1ร2ยณ) + (0ร2ยฒ) + (1ร2ยน) + (0ร2โฐ) = 8 + 0 + 2 + 0 = 10โโ
Uses digits 0-7. Each digit represents a power of 8. Often used as a shorthand for binary in computing, especially in Unix file permissions.
Example: 52โ = (5ร8ยน) + (2ร8โฐ) = 40 + 2 = 42โโ
Uses digits 0-9. The standard number system humans use daily. Each digit represents a power of 10.
Example: 365โโ = (3ร10ยฒ) + (6ร10ยน) + (5ร10โฐ) = 300 + 60 + 5
Uses digits 0-9 and letters A-F (where A=10, B=11, C=12, D=13, E=14, F=15). Commonly used in programming for colors, memory addresses, and compact binary representation.
Example: 2Aโโ = (2ร16ยน) + (10ร16โฐ) = 32 + 10 = 42โโ
Computers use binary because digital circuits can easily represent two states: on (1) and off (0). This makes binary the most reliable and efficient system for electronic computing. All data in computers, from text to images, is ultimately stored and processed as binary numbers.
Hexadecimal is more compact and easier to read than binary. Use hex when you need to represent binary data in a human-readable format, such as color codes (#FF5733), memory addresses, or debugging. One hex digit represents exactly four binary digits, making conversion straightforward.
Octal is primarily used in Unix/Linux file permissions (e.g., chmod 755) and some legacy systems. While less common than hex, it's still useful because three binary digits convert to one octal digit, making it a compact representation for certain applications.
To convert from any base to decimal: multiply each digit by the base raised to its position power (starting from 0 on the right), then sum. To convert from decimal to another base: repeatedly divide by the target base and record remainders in reverse order. For binary-hex-octal conversions, use grouping methods.
This calculator can handle very large numbers limited only by JavaScript's number precision (up to 2^53 - 1 or about 9 quadrillion). For even larger numbers, you may need specialized big integer libraries. The conversion algorithms work the same regardless of size.
This calculator handles positive integers. Negative numbers in computers use two's complement representation in binary. Decimal fractions require different conversion methods (multiplying by the base for the fractional part). For these special cases, use specialized calculators or conversion methods.
These grouped paths are designed to help you continue with the most common follow-up calculations in this category.
Cover quick calculations for percentages, fractions, averages, and ratios used in school, shopping, and spreadsheets.
Move from powers and logarithms into more advanced solving tools when the problem gets more complex.
Calculate dimensions, area, and triangle relationships using a connected geometry workflow.