Number Base Converter
Convert between binary, octal, decimal and hex live
🔒 100% бесплатно · без регистрации · файлы не покидают ваше устройство
Bases show up everywhere in day-to-day engineering work. Memory dumps and colour codes are hexadecimal, file permissions on Linux are octal, bitmask flags and register values are binary, and everything you print for a human is decimal. Reading a value in one base while thinking in another is where mistakes creep in, especially with long values where a single mistyped digit changes the result by thousands.
This number base converter keeps binary, octal, decimal and hexadecimal in sync at the same time: type into any of the four fields and the other three update as you type, so you can see the same value from four angles at once. Long binary and hex values are grouped into readable blocks, and a running bit count tells you whether a value still fits in 8, 16, 32 or 64 bits. A second tab covers any base from 2 to 36 for base32 identifiers or base36 short codes. All arithmetic uses BigInt, so huge values convert exactly instead of losing precision.
Зачем нужен Number Base Converter
Reading a bitmask or register value
Paste a hex register value and read the binary form directly to see exactly which flag bits are set, with digits grouped in nibbles.
Setting Linux file permissions
Work out what chmod 754 means bit by bit, or go the other way from the rwx bits you want to the octal number chmod expects.
Checking whether a value fits a data type
The bit counter shows instantly whether an id still fits in a 32-bit integer or has crossed into 64-bit territory.
Shortening ids with base36
Convert a long decimal database id into a compact base36 string for URLs and short links, then convert it back to verify the round trip.
Полезные советы
- Hex digits map to exactly four binary digits, so the grouped binary display lines up one nibble per hex character.
- Anything over 53 bits is unsafe in normal JavaScript numbers — this tool uses BigInt, so those values stay exact here.
- Underscores and spaces are ignored on input, so you can paste 1010_1101 or FF FF FF straight from source code or a hex viewer.
- A negative sign is supported, but remember that two's complement representation depends on width and is not the same as a minus sign.
- Base 36 uses 0-9 then A-Z and is the most compact base that stays URL-safe and case-insensitive.
Как пользоваться: Number Base Converter
- 1Type a value into any of the four base fields
- 2Watch the other bases update as you type
- 3Switch to the custom tab for any base from 2 to 36
- 4Copy the converted value you need
Часто задаваемые вопросы
Can it convert very large numbers?▾
Yes. Conversion uses BigInt arithmetic, so 64-bit hashes, cryptographic keys and other huge values convert exactly with no rounding.
What happens if I type an invalid digit?▾
The field is highlighted and a message names the offending character and its position, for example a 2 typed into the binary field.
Does it accept 0x, 0b or 0o prefixes?▾
Yes. A prefix that matches the field is stripped automatically, and underscores or spaces used for digit grouping are ignored.