Skip to main content
TOP free online tools Your Workbench
English

Number Base Converter

Convert numbers between binary, octal, decimal and hexadecimal. Real-time conversion as you type.

Local browser processing — zero server uploads

How to Use

  1. Paste or type your number in any base into the Number Base Converter input area above.
  2. Configure any format or mode options to generate the all base representations in real time.
  3. Review the generated output in the result panel above, or click Reset to start over.

What is Number Base Converter?

A Number Base Converter translates integers simultaneously across four standard computing radix systems—Binary (base 2), Octal (base 8), Decimal (base 10), and Hexadecimal (base 16)—updating all other fields live as you type in any base.

How It Works

Editing any of the four base inputs calls convert(value, fromBase), which parses the entered string with parseInt(value, fromBase) and immediately writes .toString(2), .toString(8), .toString(10), and .toString(16).toUpperCase() across the remaining inputs (raising "Invalid number for this base" if parsing fails) synchronously in browser state.

Common Use Cases

  • Converting hexadecimal memory addresses or color bytes — enter hex digits in base 16 to read decimal and binary bit representations
  • Checking Unix file permission masks — convert octal modes like 755 or 644 into binary permission flags
  • Debugging bitmasks and flags — inspect base-2 bit patterns alongside concise uppercase hexadecimal notation
  • Checking CS homework across all four bases — convert from any starting radix without selecting source/target dropdowns
Technical Details

Bases: 2 (Binary), 8 (Octal), 10 (Decimal), 16 (Hexadecimal, uppercase output). Uses native JS parseInt(val, base) and Number.prototype.toString(base) for live four-way integer conversion locally.

FAQ

Which number bases are supported?

Binary (2), Octal (8), Decimal (10), and Hexadecimal (16).