What it does
Enter a whole number and see it at once in base 2 (binary), base 8 (octal), base 10 (decimal) and base 16 (hexadecimal). The four results update as you type and each is ready to copy. Negative numbers are supported — a leading - is carried through to every base.
Choosing the input base
In Auto mode the prefix decides: 0x means hexadecimal, 0o octal, 0b binary, and anything else is read as decimal. Pick an explicit base button to force the reading instead — in Hex mode ff is 255 with no prefix needed, and in Binary mode 1010 is 10. If you type a digit that doesn't belong to the chosen base (say 2 in binary, or g in hex) the tool flags exactly which character was invalid rather than guessing.
Big integers stay exact
Conversion uses JavaScript's BigInt, so values far beyond 2⁵³ keep every digit. Plain parseInt and Number.toString round large numbers silently, which quietly corrupts 64-bit IDs, permission bitmasks and hashes. Here the arithmetic is exact at any size.
Worked examples
- Type
255(Auto): Binary11111111, Octal377, Decimal255, Hexff. - Type
0b1010: the0bprefix reads it as binary, giving Decimal10and Hexa. - Paste a large flag value like
0xDEADBEEFCAFEBABEand read off its exact decimal and binary forms for a bitmask check.
When to use it
Handy for reading a hex colour or byte value as decimal, inspecting a Unix file-mode or permission bitmask, decoding a hardware register, or sanity-checking a 64-bit identifier. For styling hex colours specifically, try the colour converter; for Unix permission bits, the chmod calculator.
Privacy
Everything runs locally; nothing is uploaded.