Binary Octal Hexadecimal Calculator
Fast, accurate and free online binary octal hexadecimal calculator tool running directly in your browser.
-
1Enter data
Enter content, paste text or load a file from disk. -
2Click the button
The tool will immediately process your data in the browser. -
3Get the result
Copy the finished text or save the file to your device.
return "Result ready in 0.1s";
}
Raw data (JSON)
{
"base_key": "hex",
"base_label": "Hexadecimal (base 16)",
"op_key": "add",
"op_label": "Add (A + B)",
"primary": "0x1B3E",
"dec": "6974",
"bin": "0b1101100111110",
"oct": "0o15476",
"hex": "0x1B3E",
"text": "Base: Hexadecimal (base 16)\nOperation: Add (A + B)\nA: 0x1A3F\nB: 0xFF\n\nResult:\n Primary: 0x1B3E\n Decimal: 6974\n Binary: 0b1101100111110\n Octal: 0o15476\n Hex: 0x1B3E"
}
Rate this tool:
Related tools
Other tools you may find usefulBinary, Octal and Hexadecimal Calculator
Free online tool for performing arithmetic calculations in the BIN (binary), OCT (octal) and HEX (hexadecimal) number systems with instantaneous conversion of the result to all four formats. Designed for programmers, electronics students, and anyone who works close to hardware or network protocols.
What is
used for? The calculator allows you to add and subtract numbers written in the selected number system - binary (base 2), octal (base 8) or hexadecimal (base 16). The result is automatically presented in all four systems simultaneously: DEC, BIN, OCT and HEX. Supports numbers with standard prefixes (0b, 0o, 0x) and upper and lower case hex letters. Perfect for debugging microcontroller registers, network masks, RGB values and bit operations.
How to use
1. Selectsystem liczbowynumber system (binary, octal or hexadecimal). 2. Enter two numbers A and B - you can use prefixes (0x1A3F) or just digits. 3. Selectoperation: addition or subtraction. 4. Optionally, select prefix addition and capitalization format for hex. 5. ClickCalculate- the result will appear in a large tab with the BIN/OCT/DEC/HEX distribution and Copy buttons.
Number systems - basics
Binary (BIN, base 2)- uses only the digits 0 and 1. It is the native language of processors and digital circuits. Each bit represents a power of 2. E.g. 1101₂ = 1×8 + 1×4 + 0×2 + 1×1 = 13₁₀.
Octal (OCT, base 8)– digits 0–7. One octal symbol corresponds to exactly 3 binary bits, which makes it convenient on Unix systems (file permissions: chmod 755 = 111,101,101₂). Prefix: 0o or 0.
Decimal (DEC, base 10)– everyday standard. All calculator results are always converted to DEC for easy verification.
Hexadecimal (HEX, base 16)- numbers 0-9 and letters A-F. One hex symbol = 4 bits (nibble). Common in programming: memory addresses, RGB colors (#FF6600), network protocols, CPU registers. Prefix: 0x.
Conversions between systems - scheme
Conversion of any number: first convert to DEC (adding positional values), then from DEC to the target database by subsequent division and collecting the remainder. Our calculator does this automatically with every calculation - you see each result simultaneously in BIN, OCT, DEC and HEX.
Bitwise and arithmetic operations
The calculator performsarithmeticaddition and subtraction of numbers in the selected base. For bitwise operations (AND, OR, XOR, NOT, shifts), it is worth using a dedicated bitwise operations calculator. Understanding the difference is key: 0b1010 + 0b0110 = 0b10000 (arithmetic), while 0b1010 AND 0b0110 = 0b0010 (bit).
Programming applications
The hex octal binary converter is necessary for: memory dump analysis, working with Modbus/CAN/I2C protocols, setting registers of AVR/STM32/ESP32 microcontrollers, calculating CRC checksums, working with CSS colors (hex → decimal RGB), configuring Linux/Unix file system permissions (chmod in the octal system).
FAQ
How to enter a negative number?
Type a minus sign before the number, e.g. -0x1A or -101. The calculator handles characters correctly and will return a signed result in all formats.
Can I enter numbers with the prefix 0x or 0b?
Yes. The calculator automatically recognizes the prefixes 0b (binary), 0o (octal), and 0x (hexadecimal) and removes them before calculating. You can a