Octal to Decimal
Convert octal numbers to decimal effortlessly
Converter Tool
Enter an octal number (0-7). The '0o' prefix is optional. Choose between unsigned and signed (two's complement) interpretation.
Bits:
0
Type:
Unsigned
Binary Representation:
Hexadecimal Representation:
About Number Systems
Octal System
The octal numeral system, or oct for short, is the base-8 number system, and uses the digits 0 to 7. Octal numerals can be made from binary numerals by grouping consecutive binary digits into groups of three (starting from the right).
Octal to Decimal Conversion Table
| Octal | Decimal | Octal | Decimal |
|---|---|---|---|
| 0 | 0 | 4 | 4 |
| 1 | 1 | 5 | 5 |
| 2 | 2 | 6 | 6 |
| 3 | 3 | 7 | 7 |
Decimal System
The decimal system is a base-10 numbering system that uses ten distinct symbols: 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9. It is the most commonly used number system in everyday life.
Two's Complement
Two's complement is a mathematical operation used to represent negative numbers in binary systems. It is widely used in computing because it simplifies arithmetic operations such as addition and subtraction.
To convert a positive number to its negative counterpart in two's complement:
- Convert the number to binary.
- Invert all the bits (change 0 to 1 and 1 to 0).
- Add 1 to the result of the inversion.
To convert a negative two's complement number back to decimal:
- Invert all the bits.
- Add 1 to the result of the inversion.
- Convert the result to decimal and prefix it with a negative sign.
Example: 8-bit Two's Complement
Positive Number (5):
0000 0101 (binary)
Negative Number (-5):
1111 1010 (inverted bits of 5)
1111 1011 (add 1 = two's complement representation of -5)
Range for 8-bit Two's Complement:
-128 (1000 0000) to 127 (0111 1111)
Related Tools
Octal to Decimal
Convert octal numbers to decimal effortlessly
Hex to Decimal
Convert hexadecimal numbers to decimal effortlessly
Text to Hex
Convert text to hexadecimal representation effortlessly
Pace Converter
Easily convert running pace between different units and calculate estimated time and distance
SHA-512/256 Hash Calculator
Generate SHA-512/256 hashes quickly and easily
Discount Calculator
Calculate discounts, sale prices, and savings with our easy-to-use discount calculator.