Hoglet

Number bases

The bits

Fits in 16 bits
2,026 in decimal

Binary, Decimal, Hex and Octal Converter

Convert between binary, decimal and hex.

Type a whole number in any of the fields, in binary, octal, decimal or hexadecimal, and the others show the same number in their base. A fifth field takes any base from 2 to 36. Below them are the number’s bits: press one to flip it, and every field follows. ↑ and ↓ in a field add or take away one. Numbers can be of any length: there is no 64-bit limit. Prefixes such as 0x and 0b, spaces and underscores are accepted, and a digit that doesn’t belong to the base is named.

How to use Number bases

  1. Type a whole number in Binary, Octal, Decimal or Hexadecimal, or in the field for any base from 2 to 36.
  2. Watch the other fields follow, and press a bit under them to flip it.
  3. Press the copy button beside the base you need, such as Copy decimal.

Number bases: common questions

Is my data sent anywhere when I convert hex to decimal?

No. The number base converter works in your browser, on your device; the numbers you type are not sent anywhere, and it works offline.

Can the number base converter handle numbers larger than 64 bits?

Yes. The number base converter works with whole numbers of any length, with no 64-bit limit; the bits view shows the last 64 bits of a longer number. Negative numbers are accepted too.

Does the base converter accept 0x and 0b prefixes?

Yes. The number base converter accepts 0x in the hexadecimal field, 0b in binary and 0o in octal, and spaces and underscores between digits. A digit that does not belong to the base is named.

Everything stays on your device. Nothing is uploaded. Works offline once your first visit has stored the app.