Nifty Dev Tools
  1. Home
  2. Number Converter
Convert

Type a number in binary, hex, decimal or octal and see it in every base at once, or turn text into bytes and back.

Decimal
Hex

The result will appear here as you type.

A binary and hex converter in one

Type a number in any base: the All bases list under the result shows it in decimal, hex, binary and octal at the same time. Pick From and To for one conversion, or open one of the pages below for a worked example and a table.

For example, 255 is 11111111 in binary, 377 in octal and FF in hex.

All conversions

Number bases at a glance

DecimalHexBinaryOctal
0000
1111
22102
33113
441004
551015
661106
771117
88100010
99100111
10A101012
11B101113
12C110014
13D110115
14E111016
15F111117
16101000020
322010000040
64401000000100
100641100100144
1277F1111111177
1288010000000200
255FF11111111377
256100100000000400

Hex uses 16 digits (0–9 and A–F), binary only 0 and 1, octal 0–7. One hex digit is exactly 4 bits, so two hex digits make one byte.

FAQ

How are negative numbers converted?

Without a bit width, the sign is kept: −255 becomes −FF. Choose a bit width and turn on Signed to use two's complement, the way computers store negative numbers: −1 in 8 bits is FF.

Is there a size limit?

No practical one. Arbitrary-precision integers (BigInt) convert even 100-digit numbers exactly. Fractions aren't supported.

Is my data uploaded?

No. Everything is converted in your browser. Privacy