1. Home
  2. Converters
  3. Number Base Converter

Number Base Converter

Type a number in any field and see it in every other base instantly. Big integers are handled exactly.

Free, no sign-up. Runs in your browser: nothing is uploaded.

Free workspace included. Docs, spreadsheets, notes and tasks that save on your device. No sign-up.Take a look

How to use Number Base Converter

  1. Type a number in the base you have.
  2. All other bases update as you type.
  3. Copy any value.

Features

  • Bases 2, 8, 10, 16 and custom up to 36
  • Arbitrary-precision integers
  • Grouped binary digits

Private by design

Everything you enter is processed by your browser on this device. Nothing is sent to openWorkstand or anyone else, so the Number Base Converter is safe for private and work data. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • Whole numbers only: fractions such as 0.5 are not supported. Very large whole numbers are converted exactly.

Guide

Converting between binary, octal, decimal and hex

The same number can be written in many ways. 255 in decimal is 11111111 in binary, 377 in octal and FF in hexadecimal. Programmers, students and electronics hobbyists switch between these constantly. This converter shows a number in all the common bases at once, for integers of any size.

Using the converter

Type a number into any field (binary, octal, decimal, hexadecimal or the custom base) and every other field updates. A few conveniences:

  • Prefixes like 0x, 0b and 0o, spaces and underscores are ignored, so you can paste 0xFF_FF or 1111 0000 directly.
  • Group digits shows binary and hex in blocks of four and decimal with commas, which makes long values readable. The copy buttons always copy the plain value.
  • For numbers up to 64 bits, the line at the bottom shows how many bits and bytes the value needs.

Digits that aren’t valid for the base, such as a 2 in binary or a G in hex, trigger a warning rather than a wrong answer.

How number bases work

In base 10 each position is worth ten times the one to its right: 1, 10, 100… In base 2 it’s 1, 2, 4, 8, 16; in base 16 it’s 1, 16, 256, 4096. Bases above ten need extra digits, so hexadecimal uses A–F for 10 to 15, and base 36 uses the whole alphabet.

Decimal Binary Octal Hex
10 1010 12 A
15 1111 17 F
16 10000 20 10
100 1100100 144 64
255 11111111 377 FF
1024 10000000000 2000 400

Converting by hand

To decimal: multiply each digit by its position value and add. Hex 2F = 2×16 + 15 = 47.

From decimal: divide by the base repeatedly and read the remainders upward. 47 ÷ 2 gives remainders 1, 1, 1, 1, 0, 1, so 47 = 101111.

Binary ↔ hex shortcut: every hex digit is exactly four bits. Split binary into groups of four from the right and translate each group: 1010 1111 = AF. Octal works the same way with groups of three.

Where each base shows up

  • Hex colors: #FF8800 is three bytes: red 255, green 136, blue 0. The Color Converter goes further.
  • File permissions: Unix chmod 755 is octal: 111 101 101 in binary, meaning rwx for the owner and r-x for others.
  • Bit flags and masks: binary shows exactly which flags are set; 0b1010 has bits 1 and 3 on.
  • Memory addresses, hashes and IDs: almost always hex.
  • Short codes: base 36 packs large numbers into short strings of digits and letters.

Big numbers and limits

Values are calculated with arbitrary-precision integers, so a 40-digit decimal number converts exactly, without the rounding a normal calculator shows past about 16 digits. Negative numbers keep their minus sign.

Two things aren’t supported: fractions (such as 0.1 in binary) and two’s-complement representations, where −1 in an 8-bit byte is 11111111. Programming references or a calculator in programmer mode cover those.

Who converts number bases

  • Computer science students practice binary, octal and hex conversions.
  • Developers read memory addresses, bit flags, color values and permission codes.
  • Network engineers work with IP address masks and MAC addresses.
  • Electronics hobbyists read register values and microcontroller data.

A complete example: a subnet mask

A network uses the mask 255.255.255.192. Convert 192 to binary: 11000000. The two 1s plus the 24 ones in 255.255.255 make a /26 network, with 6 host bits, meaning 64 addresses per subnet.

Tips

  • Turn on digit grouping to read long binary numbers in blocks of four.
  • Copy buttons copy the plain value, without the grouping spaces.

Checked against the current version of the Number Base Converter on .

Frequently asked questions

How do I convert binary to decimal by hand?

Multiply each digit by the power of 2 for its position, counting from 0 on the right, and add them up. 1011 is 1×8 + 0×4 + 1×2 + 1×1 = 11.

How do I convert decimal to hexadecimal?

Divide by 16 repeatedly and write down the remainders from last to first, using A–F for 10–15. 255 ÷ 16 = 15 remainder 15, so 255 is FF.

Can it convert negative numbers or fractions?

Negative whole numbers are shown with a minus sign (−255 is −FF). Fractions aren't supported, and the converter doesn't produce two's-complement bit patterns for a fixed width.

What is base 36 used for?

Base 36 uses all ten digits and 26 letters, which makes short, case-insensitive IDs. Some URL shorteners and reference codes use it.

Why does hexadecimal use letters?

Base 16 needs sixteen digits, so after 0–9 it uses A–F for the values ten to fifteen.

Keep working with the result

openWorkstand also includes a free workspace with documents, spreadsheets, tasks, projects and a calendar that save to a folder on your computer.