Number Base Converter (Bin / Oct / Dec / Hex)

Convert numbers between binary, octal, decimal, and hexadecimal instantly. Supports large numbers and bitwise info.

Free Always No Account Needed 100% Client-Side
0b
0o
0x
32-bit binary

00000000 00000000 00000000 00001010

Bytes needed: 1Signed 32-bit: 10
Advertisement

How to use Number Base Converter (Bin / Oct / Dec / Hex) Online

  1. 1
    Input Data or ParametersPaste your input string, code payload, or select parameters into the editor.
  2. 2
    Instant Local ComputationThe tool processes your request in real-time inside your browser using client-side JavaScript.
  3. 3
    Copy or Export OutputCopy the formatted result to your clipboard or download the output payload instantly.

About this tool

Number systems with different bases are fundamental to computer science and programming. This converter handles the four most common bases:

- Binary (base 2) — the language of computers, using only 0 and 1 - Octal (base 8) — common in Unix file permissions (chmod 755) - Decimal (base 10) — standard human number system - Hexadecimal (base 16) — compact representation for binary, used in colors, memory addresses, and binary files

Type a number in any base and all other representations update in real-time. The tool also shows the 32-bit binary representation, two's complement, and byte count — useful for low-level programming.

Supports very large numbers using JavaScript's BigInt, so there's no overflow at 32-bit or 64-bit limits.

Advertisement

Frequently Asked Questions

How do I convert hex color #FF5733 to RGB?
Split the hex into pairs: FF=255, 57=87, 33=51. So #FF5733 = RGB(255, 87, 51). Use the Color Picker tool for full color conversion.
What is two's complement?
Two's complement is how computers represent negative numbers in binary. For an 8-bit number, flip all bits and add 1.
What does 0x prefix mean?
0x is a conventional prefix for hexadecimal numbers (e.g., 0xFF = 255 decimal). 0b is used for binary (0b1010 = 10).
Why are Unix file permissions written in octal?
Each octal digit (0-7) represents 3 binary bits (read/write/execute), making octal a compact notation for 9-bit permission sets.

Related Tools