Number Base & Bitwise ALU Converter
Convert arbitrary-precision numbers and text across Binary, Octal, Decimal, Hex, and Base64. Visualize IEEE 754 floats, Two's Complement, endianness, and bitwise ALU.
Primary Radix Representations
Computer Systems Radixes
Interactive Bit-Toggle Register
Click any individual bit below to toggle between 0 and 1 liveHow to Use Number Base & Bitwise Converter
- Choose Radix or Engine Mode: Select between Multi-Radix Converter, IEEE 754 Float32 Visualizer, UTF-8 Text to Bytes, or Bitwise ALU logic.
- Input Value or Toggle Bits: Type your number in any field (Dec, Bin, Hex, Octal) or click individual bits on the 32-bit register strip to toggle them.
- Configure Precision & Signed Modes: Switch between 8-bit, 16-bit, 32-bit, 64-bit, or Arbitrary BigInt, and evaluate Two's or One's Complement.
- Inspect Endianness & Copy: Click Swap Endianness to see memory byte orientation and copy any representation with one click.
Operational Limits & Specifications
| Processing Tier | Client-Side (In-Browser Execution) |
|---|---|
| Max File Size | 1 MB per file |
| Max Batch Quantity | Up to 1 files |
| Max Total Batch Size | 1 MB total |
| Supported Formats | .txt |
Common Use Cases
Low-Level Systems & Firmware Debugging
Examine raw CPU register dumps, memory address pointers, and endianness swaps when working in C, C++, or Rust.
Network Protocol & Packet Analysis
Convert hex stream dumps from Wireshark into binary bitfields and extract network-byte-order headers.
POSIX File Permissions & Bitmasks
Calculate octal masks (such as 0755 or 0644) and verify permission flags using interactive bit toggles.
Computer Science Education & Float Inspection
Inspect the exact sign, exponent, and mantissa components of IEEE 754 floating-point representations visually.
Technical Mechanics & Architecture
Comparison with Alternatives
Tips & Troubleshooting
- Prefix hex numbers with '0x' or binary numbers with '0b' when typing into the ALU operand fields.
- If working with numbers greater than 64 bits, set Bit Width to 'Arbitrary BigInt' to prevent fixed-width register masking.
- Use the clickable bit register strip to easily toggle bitmasks without manual binary typing.
Frequently Asked Questions
What is Two's Complement representation?
Two's Complement is the mathematical system modern CPUs use to store signed integers. To represent a negative number in an N-bit system, invert all bits (One's Complement) and add 1. This provides a single zero representation (0000) and allows identical ALU adder circuitry to perform both addition and subtraction.
How does Big-Endian differ from Little-Endian byte order?
Endianness describes the order in which bytes of a multi-byte word are stored in computer memory. Big-Endian stores the most significant byte at the lowest memory address (common in network protocols), while Little-Endian stores the least significant byte first (standard in x86-64 and modern ARM processors).
How does the IEEE 754 32-bit floating-point format work?
A 32-bit single-precision float consists of 1 sign bit (bit 31), 8 exponent bits (bits 30–23) with a bias of 127, and 23 mantissa/fraction bits (bits 22–0). The reconstructed real value is (-1)^Sign * 2^(Exponent - 127) * (1 + Fraction).
Why do JavaScript numbers normally lose precision above 2^53 - 1?
Standard JavaScript numbers are IEEE 754 double-precision floats with 53 bits of mantissa, losing precision for integers greater than 9,007,199,254,740,991. Our converter uses native BigInt to ensure 100% lossless integer math with arbitrary bit width.
What is the difference between Arithmetic Shift (>>) and Logical Shift (>>>)?
Logical Right Shift (>>>) shifts bits to the right and always fills the vacated high-order bits with zeros, treating operands as unsigned. Arithmetic Right Shift (>>) shifts bits to the right while preserving the sign bit (filling with 1s if negative), preserving the arithmetic sign.
Can this tool convert ASCII and UTF-8 text directly to binary and hex?
Yes. In the Text mode, your string is parsed into its raw UTF-8 byte stream, allowing you to view and copy individual byte values separated by spaces, commas, or standard 0x / 0b prefixes.