ElectroDesignForgeElectroDesignForge
ElectroDesignForge

Find a page

PCB Toolkit
Components
Design
Pinout & Connectors

Cable

Documentation
Calculators

Converters

Arrow keys to browse · Enter to open · Escape to close

Number Base Converter

Convert BIN, DEC, HEX and OCT instantly. Perform bitwise AND, OR, XOR, shifts and integer calculations with signed and unsigned values.

Read the complete guide
BIN / DEC / HEX / OCT

Binary Bit View

Click a bit, or press Enter or Space, to toggle it.

1 / 0HEX FF
0xFF

Auto uses exact BigInt integers, with no fixed unsigned range. Bitwise operations use an unbounded two’s-complement model; ~x = −x − 1. Representation applies only at a fixed width.

DEC is a mathematical value. Nonnegative BIN, HEX and OCT are raw bit patterns at a fixed width: signed 8-bit FF = −1. Negative inputs are mathematical values. Matching 0b, 0x and 0o prefixes are optional; spaces may group non-decimal digits.