Skip to content

Number Base Converter

Number

About

Computers store all data in binary (base 2). Hexadecimal (base 16) is a compact shorthand - each hex digit represents exactly 4 bits, which is why it is common in color codes (#FF0000), memory addresses, and byte-level data.

How to use

  1. 1.

    Type a number into any of the four fields - binary, octal, decimal or hexadecimal

  2. 2.

    The other three update as you type; binary is shown in groups of four digits

  3. 3.

    Copy any value with the button at the end of its field

Common uses

  • ▸

    Converting memory addresses from hex to decimal while debugging

  • ▸

    Understanding binary representations of integers in low-level code

  • ▸

    Converting color channel values between decimal and hex

Frequently asked questions

What bases does this support?

The tool converts between binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16) - the four most common number bases in computing.


Can I paste values like 0xFF or 1111_0000?

Yes. Each field accepts its own base's prefix (0b in Binary, 0o in Octal, 0x in Hexadecimal), and underscores or spaces between digit groups are ignored, so the grouped binary shown here pastes straight back in. A prefix only counts in its own field: typed into Hexadecimal, 0b101 is the hex number 0B101. Copy gives the bare digits, without a prefix or spaces.


Is there a maximum input size?

The tool uses JavaScript BigInt internally, so it can handle arbitrarily large integers with full precision - no upper limit beyond available memory.


Is my data sent to a server?

All conversion runs locally in your browser. No data is transmitted anywhere.


Can I enter negative numbers?

The tool handles whole numbers from zero upwards. Negative number representation (two's complement) varies by bit width and is not directly supported.