Loading…
Loading…
Convert between binary, decimal, hex & octal instantly
A & B (AND)
0 (0b0)
A | B (OR)
255 (0b11111111)
A ^ B (XOR)
255 (0b11111111)
~A (NOT)
4294967125 (0b11111111111111111111111101010101)
A << 1
340 (0b101010100)
A >> 1
85 (0b1010101)
Run your projects on Claude Code?
We packaged the .claude config that runs this site — 26 specialist agents, 14 workflow skills, and 6 rule files from 31 real production incidents. From $9.
Get the Claude Code Production Pack — $29Number system conversion is a fundamental skill for developers, computer science students, and anyone working with low-level programming. This tool provides instant bidirectional conversion between binary, decimal, hexadecimal, and octal — plus practical features like bit visualization, two's complement, and bitwise operations.
The converter parses input in the selected base, converts to a common BigInt representation internally, then formats output in all target bases simultaneously. Two's complement is calculated by inverting bits and adding 1. Bitwise operations work on the binary representation directly.
A systems programmer debugging a register value — sees 0xDEADBEEF in a dump and needs the binary representation to check individual flag bits.
A CS student learning number systems — types decimal 255 and instantly sees it's 11111111 in binary, FF in hex, and 377 in octal.
A network engineer calculating subnet masks — uses bitwise AND between an IP address and mask to determine the network address.
A game developer working with bit flags — uses the bitwise OR panel to combine permission flags and sees the resulting integer value.
Scope note: Floating-point binary representation (IEEE 754) is not supported — the tool works with integers only. Unicode characters beyond the Basic Multilingual Plane may show unexpected binary lengths in text conversion.
Type a number in any format (binary, decimal, hex, or octal) — all other fields update instantly
Use the Text → Binary section to convert text strings to their binary representation
Toggle the bit-width selector (8/16/32-bit) to see the bit grid visualization
Enable Two's Complement to work with signed integers (negative numbers)
Use the Bitwise Operations panel to perform AND, OR, XOR, NOT, or shifts between two values
Click Copy next to any result to copy it to your clipboard
About the Binary Converter
Type your binary number (e.g., 11010110) in the Binary field. The Decimal field instantly shows the result (214). Each binary digit represents a power of 2.
Two's complement is how computers represent negative numbers in binary. The most significant bit is the sign bit (1 = negative). Enable it to convert signed integers correctly.
Yes. The tool uses BigInt internally, supporting numbers far beyond the standard 32-bit integer range.
Bitwise operations (AND, OR, XOR, shifts) are used in low-level programming for flags, masks, permissions, hash functions, and performance-critical code.
Builder/critic agent prompts with brakes built in
Open →DeveloperFormat, validate & diff JSON — runs entirely in browser
Open →DeveloperTest regex live — railroad diagrams + plain English explained
Open →DeveloperOne color in, full design system out
Open →