←
Developer

Number Base Converter

Loading the tool…

Ready when you are.Runs in this browser · nothing is uploaded

Binary, octal, decimal, hex, any base

  • Free
  • No sign-up
  • No upload
  • Works offline

Tool facts

Price
Free, no sign-up, no watermark
Are files uploaded?
No. Everything is processed in this browser, on your device.
Offline use
Works without a connection once this page has loaded
Browser
A recent Chrome, Edge, Firefox or Safari, on computer or phone.

Check it yourself: press F12, open the Network tab, then use the tool. No request carries your data.

About Number Base Converter

Number Base Converter translates a whole number between decimal, hexadecimal, binary, octal and any custom base from 2 to 36 at the same time. Type into any of the boxes and the others update instantly. It uses JavaScript BigInt arithmetic, so there is no 53-bit limit: 64-bit IDs, 128-bit values and numbers with hundreds of digits convert exactly, without rounding.

Input is forgiving. You can paste values with 0x, 0b or 0o prefixes, a minus sign, spaces, underscores or thousands separators, and the tool ignores them. It also shows how many bits and bytes the number needs and its two's complement form at 8, 16, 32, 64 or 128 bits, which is how computers store negative integers. That makes it handy for reading memory dumps, bit masks, color codes and register values.

Number Base Converter runs entirely in your browser. Your data is processed on your device and is never uploaded to Qiyi or anyone else.

How to use Number Base Converter

  1. Type or paste a number into the Decimal, Hexadecimal, Binary, Octal or custom base box.
  2. Read the same value in every other base; use Copy next to a box to copy it.
  3. Set Custom base to any value from 2 to 36 to see that base too.
  4. Choose a Bit width to see the two's complement form, and turn on Uppercase letters or Group digits for easier reading.

Frequently asked questions

How do I convert binary to decimal by hand?

Multiply each digit by 2 raised to its position, counting from 0 on the right, and add the results. For example, 1011 is 1×8 + 0×4 + 1×2 + 1×1 = 11. Hexadecimal works the same way with powers of 16, where A to F stand for 10 to 15.

Is there a maximum number size?

No fixed limit. The converter uses BigInt, so it handles integers with thousands of digits exactly. Only whole numbers are supported; fractions and decimal points are rejected.

What is two's complement?

Two's complement is how processors store signed integers in a fixed number of bits. A negative number n is stored as 2^bits + n, so -1 in 8 bits is 11111111 (0xFF). The tool shows this form for the chosen width and also tells you what the same bits mean when read as signed or unsigned.

Which digits are used above base 10?

Letters A to Z stand for the digit values 10 to 35, which is the convention used by most programming languages. Base 36 therefore uses 0–9 and A–Z. Input is case-insensitive.

Why is my input marked invalid?

Each base only allows certain digits: binary allows 0 and 1, octal 0 to 7, and hexadecimal 0 to 9 and A to F. A digit outside that range, such as 2 in a binary number, shows an error under the box.

· Free · Runs in this browser · nothing is uploaded

Drop any file here
Drop it to see which tools can open it