Multi-Base Number Display

See any integer simultaneously in binary, octal, decimal, and hex

Ad placeholder (leaderboard)

This tool takes a single integer and shows it at the same time in binary, octal, decimal, hexadecimal, and base-36. Instead of converting one base at a time, you see every common representation in one glance, which is handy when debugging bit masks, color codes, permission flags, or short IDs.

How it works

A positional number system in base b represents a value as a sum of digits multiplied by powers of b. For example the decimal string 255 means 2 * 10^2 + 5 * 10^1 + 5 * 10^0. The tool first parses your input by walking each digit left to right and accumulating acc = acc * b + digit, using BigInt so there is no size limit. Once it has the exact integer value, it re-renders that value in each target base with JavaScript’s toString(radix), which performs repeated division by the new base and reads the remainders.

255 in base 10
 -> binary  11111111
 -> octal   377
 -> hex     FF
 -> base36  73

Tips and notes

You can paste prefixed literals such as 0xFF, 0b1010, or 0o755 and the matching prefix is stripped automatically. Hexadecimal output is shown uppercase by convention, but parsing is case-insensitive. Negative inputs keep their sign in every base. If a character does not belong to the chosen base — for instance the digit 9 while in octal, or G while in hex — the input is flagged as invalid rather than silently producing a wrong answer.

Ad placeholder (rectangle)