Number base converter: binary, octal, decimal and hex, two's complement and data sizes

Convert a number between binary, octal, decimal, hexadecimal and any base from 2 to 36, see it in two's complement for 8, 16, 32 and 64 bits, convert data sizes (bits, bytes, KB, KiB) and work out download time at a speed.

Keep it one tap away for everyday use.

Bookmark Number base converter?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

Or install fibub as an app: every tool you open then works offline.

  1. Type number
  2. Convert
  3. Check
  4. Copy
Nothing is uploadedWorks offline once open

Number bases

Use 0 to 9 and then A to Z for digits above 9. A minus sign, spaces and 0x or 0b at the start are fine.

In every base

Two's complement (how computers store negative numbers)

The same number as a row of 8, 16, 32 or 64 bits. In "read as signed", the top bit means negative.

BitsPatternHexSignedUnsigned

Data size converter

Download time

An ideal time at the full speed. Real downloads are usually slower because of overheads and busy networks. Internet speeds are sold in bits, file sizes shown in bytes: 8 bits make 1 byte.

What it does

A number can be written in many ways. Computers use binary (base 2), programmers like hexadecimal (base 16) because each digit stands for four bits, and people use decimal (base 10). This tool converts a whole number between all of them, and any other base from 2 to 36, using exact big-integer arithmetic so even huge numbers stay correct.

Below the conversion it shows the same number in two’s complement at 8, 16, 32 and 64 bits, and it has a data size converter and a download time calculator. Everything runs on your device. For text rather than numbers, see text encoder; for binary-safe text, base64 converter; and to fingerprint a file, hash checker.

How to use it

  1. Type a number and say which base it is written in. Hex may start with 0x and binary with 0b.
  2. Read the table of bases. Binary is grouped in fours. “Also show base” adds any base from 2 to 36.
  3. Look at the two’s complement table to see the bit pattern, the hex, and how the pattern reads as signed and unsigned.
  4. Use the data size box to compare units, and the download box to find out how long a file takes.

What each setting does

  • Two’s complement: the usual way to store negative numbers. To get -1 in 8 bits, write 255 as bits (11111111) and read the top bit as a minus sign. A number that is too big or small for a width says “Does not fit”.
  • KB, MB, GB mean 1,000, 1,000,000 and so on. KiB, MiB, GiB mean 1,024 steps. That is why a “1 TB” drive shows as about 931 GiB.
  • Bits and bytes: 8 bits make 1 byte. Internet speed is sold in bits, so 100 Mbps is 12.5 MB/s at most.

Worked example

255 in decimal is 1111 1111 in binary, 377 in octal, FF in hex and 73 in base 36. In 8 bits its pattern is 11111111, which read as signed is -1 and as unsigned is 255. The same -1 in 16 bits is 1111 1111 1111 1111 (FFFF). For data sizes, 1 GB is about 0.9313 GiB. A 5 GB file at 100 Mbps takes 5 x 8,000,000,000 / 100,000,000 = 400 seconds, which is 6 minutes 40 seconds.

FAQs

Does it do fractions? No, only whole numbers, positive or negative.

Why do the signed and unsigned values differ? The same bits mean different numbers depending on whether the top bit is a sign. The table shows both.

Is the download time exact? It is the best case. Real speeds drop because of overheads, Wi-Fi and busy servers.

Is anything sent anywhere? No. It all runs in your browser and works offline.

Where the numbers come from

  • Base conversion and two's complement are standard arithmetic, done here with exact big-integer maths so no digit is ever rounded. Data sizes: 1 KB = 1,000 bytes and 1 KiB = 1,024 bytes (IEC 80000-13 prefixes, checked 2026-12-05). Download time is size in bits divided by speed in bits per second, an ideal figure.

Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

Last updated 2026-12-05.

Related tools