Unit Converter
Convert units of measurement.
OpenType a number in decimal, hex, binary or octal and see it in the other three at once.
Decimal, hex, binary or octal, whichever you have.
Prefixes such as 0x or 0b are optional.
The other three fields update as you type.
Copy every base at once for notes or code.
A register dump shows 0x1F4, the documentation talks in decimal, and the bitmask you need to check is easiest to read in binary. Switching between them in your head is where mistakes creep in. Number Base Converter keeps all four views in sync.
The page shows four fields: Decimal, Hexadecimal, Binary and Octal. Edit any one and the other three update immediately. Prefixes are optional, so 0xFF, 0b1010 and 0o755 are accepted in their matching fields, and the Decimal field also recognizes those prefixes if you paste a value there. Hex output is shown in uppercase. Copy all puts the four values on separate lines for your notes, and Clear empties every field.
The converter works with non-negative whole numbers. Fractions and negative values are not supported, and parsing stops at the first character that is not valid for that base, so a stray letter can quietly truncate the input. Watch the decimal field to make sure it matches what you expect. Values above 9,007,199,254,740,991 (the largest integer JavaScript stores exactly) lose precision, so 64-bit IDs and hashes should be handled with a big-integer tool.
Octal is the usual format for Unix permissions; the chmod calculator explains what each digit means. For color codes, HEX to RGB splits a hex value into channels. All conversion happens in your browser.
Keyboard shortcut
Answers for this tool. For site-wide help, open the FAQ hub.
No. Negative input is rejected as invalid. To read a two's complement value, convert the raw bits as an unsigned number and subtract 2 to the power of the bit width if the top bit is set.
Parsing stops at the first character that is not a valid digit for that base. For example, 12G in the hex field is read as hex 12, which is 18 in decimal. Check the decimal result whenever you paste values from logs.
Only up to 9,007,199,254,740,991. Beyond that, JavaScript numbers lose precision and the low digits may be wrong, so use a big-integer aware tool for full 64-bit values.