Programmer Calculator
See a value in every base at once, flip bits, run bitwise operations, and inspect IEEE 754 floats — all client-side.
Value
Bits (click to toggle)
All bases
Bitwise operation
Prefix with 0b for binary, 0x for hex, or type a plain decimal number.
IEEE 754 float inspector
About this tool
Low-level programming means constantly switching number bases — a value is decimal in your head, hex in the datasheet and binary when you're masking flag bits. This calculator shows a value in binary, octal, decimal and hexadecimal simultaneously and updates every representation as you type in any one of them, with a clickable bit grid so you can flip individual bits and watch the result change.
A full set of bitwise operators (AND, OR, XOR, NOT, left and right shift) computes masks and combines flags, and a selectable word size (8/16/32/64-bit) models how values wrap and how two's-complement negatives are represented on real hardware. A separate IEEE 754 inspector breaks a floating-point number into its sign, exponent and mantissa for single and double precision. Everything is computed with BigInt for exact 64-bit results, entirely in your browser.
How to use
Enter a value in any base
Type in the hex, decimal, octal or binary field — the others update instantly.
Flip bits directly
Click cells in the bit grid to toggle individual bits and see every base recalculate.
Run a bitwise operation
Enter two operands and pick AND, OR, XOR, NOT or a shift to compute a mask; results show in all bases.
Inspect a float
Use the IEEE 754 panel to see the sign, exponent and mantissa bits of a 32- or 64-bit float.
Capabilities
| Feature | Detail |
|---|---|
| Multi-base view | Binary, octal, decimal, hex — all in sync |
| Word size | 8, 16, 32 or 64-bit with two's-complement wrapping |
| Bitwise ops | AND, OR, XOR, NOT, left shift, right shift |
| IEEE 754 | Sign / exponent / mantissa for 32- and 64-bit floats |
| Exactness | BigInt math — no precision loss at 64 bits |
All computation is client-side.
Frequently asked questions
Related tools
Subnet Calculator
Calculate IPv4 and IPv6 subnets from CIDR notation — network address, broadcast, usable host range, subnet mask, wildcard mask, and a visual bit map
Database Connection String Builder
Build and URL-encode connection strings for PostgreSQL, MySQL, MongoDB, Redis and SQLite from a simple form — with JDBC and key/value variants
Docker Compose Builder
Build a valid docker-compose.yml from a visual form — services, images, ports, volumes, environment variables, restart policies and dependencies
NGINX Config Builder
Generate an NGINX server config from a visual form — reverse proxy, static hosting, SPA fallback, SSL termination and HTTP-to-HTTPS redirects
Regex Explainer
Break down a regular expression into a plain-English, token-by-token explanation with a live match preview and a library of common patterns