DevToolkit

Number Base Converter

Convert between binary, octal, decimal, and hexadecimal

Binary--
Octal--
Decimal--
Hexadecimal--

Frequently Asked Questions

What does the number base converter do?

It converts integers between binary, octal, decimal, and hexadecimal, showing all four representations for a single input. Big integers are supported, making it handy for bitwise operations, permission masks, memory addresses, and color values.

Common use cases?

- Debugging bitwise AND/OR/XOR calculations - Reading memory dumps (`0xDEADBEEF`) - Parsing Unix permission bits (`0755`) - Breaking color hex codes into channel binaries - Subnetting and network mask math

How large an integer can it handle?

The tool uses JavaScript `BigInt` for arbitrary-precision integers, easily covering 64-bit, 128-bit, and longer values. That comfortably handles everyday needs like IPv6 addresses or UUIDs as numbers.

Why is my input flagged as invalid?

Binary accepts only 0/1, octal 0-7, hex 0-9/A-F. Whitespace and prefixes (`0x`, `0b`) are stripped automatically, but other letters or non-ASCII symbols are rejected. Negative numbers display as two's-complement.

Is my data uploaded?

No. Every conversion happens locally, so sensitive bit patterns like protocol fields or hex-encoded keys never leave your device.

How does base conversion differ from Base64/Hex encoding?

Base conversion works on numeric values — writing a single integer in different radixes. Hex encoding works on byte sequences, mapping binary data to ASCII characters. If you want a string's hex representation, use a text-to-hex encoder, not this base converter.

Related Tools