Binary to Decimal, Hex & Octal Converter
What is the binary or hex value?
Convert any number between binary (base 2), decimal (base 10), octal (base 8), and hexadecimal (base 16) β with step-by-step division work, 8-bit and 16-bit visualizations, and a color swatch if your hex value is a valid CSS color. Programmers switch between number bases constantly. Hex is used for memory addresses, color codes, and byte values. Binary is the native language of digital logic. Octal appears in Unix file permissions. Decimal is how humans think. This calculator handles all four simultaneously so you never need to chain multiple tools or convert piecemeal. The bit visualization shows exactly which bits are set in 8-bit and 16-bit representations, including two's complement for negative numbers. The reference table shows powers of 2 side-by-side with their decimal, binary, and hex equivalents β a cheat sheet for anyone working at the hardware or systems level. Whether you are a CS student, an embedded developer, or a network engineer, this tool removes the mental overhead of base arithmetic entirely.
- βConverting hex color codes (e.g., #FF5733) to decimal RGB values for CSS or design work
- βUnderstanding binary representations of integers for low-level programming or computer science courses
- βChecking Unix file permissions written in octal (e.g., chmod 755)
- βLearning or teaching number base conversion with step-by-step division walkthrough
- βVerifying byte values when debugging binary data, network packets, or file formats
You're debugging a network packet and see the hex value 0x1A2B. Enter 1A2B with hex as the input base. Result: decimal 6,699, binary 1101000101011, octal 15053. The bit view shows the 16-bit pattern with bits 0, 1, 3, 8, 10, 11, 12 set. You can verify the bit pattern matches the protocol spec field by field, confirming no data corruption was introduced.
Binary, Octal, Decimal & Hex Converter
Convert between all four bases instantly. See bit-weight visualization, base digit comparison, nearby powers of 2, and 1/0 distribution. Results update live as you type.
Quick Values
Any integer (negative OK)
Results are for informational purposes only.
Related Calculators
Password Generator
How strong should your password be?
Phone Number Extractor
Extract, normalize, and deduplicate every phone number from any text instantly.
URL Extractor
Extract, deduplicate, and analyze every URL from any text or HTML instantly.
Contact Info Extractor
Extract emails, names, phones, companies, and addresses from any text at once.
Email Extractor
Extract, deduplicate, and validate every email address from any text instantly.
Email Verifier & Validator
Validate and score every email address β single or bulk β before you send.
SEO Analyzer
Is this page optimized well enough to rank? Get a full SEO audit in seconds.
IP Subnet Calculator
What subnet settings does your network need?
Related Tools
IP Subnet Calculator
What subnet settings does your network need?
Password Generator
How strong should your password be?
Email Extractor
Extract, deduplicate, and validate every email address from any text instantly.
Phone Number Extractor
Extract, normalize, and deduplicate every phone number from any text instantly.
URL Extractor
Extract, deduplicate, and analyze every URL from any text or HTML instantly.
Email Verifier & Validator
Validate and score every email address β single or bulk β before you send.