Talbas
Bin / oct / dec / hex
Om det här verktyget
Convert numbers between decimal (base 10), hexadecimal (base 16), binary (base 2) and octal (base 8). Useful for low-level programming, embedded development, color values, bit-twiddling, networking masks, and reading hex dumps.
Privvert updates all four bases live as you type in any of them. Includes a per-bit breakdown so you can see exactly which bits are set. Runs in your browser.
Funktioner
- Decimal, hexadecimal, binary, octal
- Live four-way conversion as you type
- Per-bit breakdown of binary representation
- Up to 64-bit unsigned integers
- Browser-only - values never uploaded
- Free and unlimited
- Shows the value's width in bits and whether it fits in a signed 32-bit int
Så använder du det
- Type a number in any base.
- Read the others update live.
- (Optional) inspect the bit breakdown.
Allt sker i din webbläsare med JavaScript och WebAssembly. Dina filer laddas aldrig upp, lagras aldrig och ses aldrig av oss.
Vanliga frågor
Up to 64-bit integers (about 1.8 × 10^19). JavaScript numbers lose precision beyond 2^53, so very large values may round; the tool uses BigInt internally to avoid that for the bases that matter.
Most languages use 0x prefix (0xFF in JavaScript, C, Java) or # for colors (#FF0000). The tool shows the raw hex digits - add your language's prefix when pasting back.
Currently unsigned integers only. Two's-complement signed display is on the roadmap.
Use the CIDR tool for IP-specific conversions. This tool is for raw integer values.
Negative numbers in binary and hex are represented as two's complement, so -1 in 32-bit binary is 0xFFFFFFFF. The converter shows both the signed and unsigned interpretation of the bit pattern so you can see exactly what's happening.
Up to JavaScript's BigInt range, which is effectively unlimited. You can convert numbers far larger than any standard 64-bit integer and get exact results in any base.