OneTools Online

Number Base Converter - Binary, Octal, Decimal, Hex

Input
Convert Number
Convert
Conversion Result
Waiting for input...

Number Base Converter - Binary, Octal, Decimal, Hex

Online Base Converter Tool

Professional multi-base conversion tool supporting instant conversion between binary, base4, octal, decimal, hexadecimal and base32. Accurately handle conversions like binary to decimal, hex to binary, and any other base conversion needs.

How to Use

  1. Pick the base you are converting from

    Choose any base from 2 to 36, or use one of the six shortcuts for binary, base 4, octal, decimal, hexadecimal and base 32.

  2. Type the number

    Letters are accepted and case does not matter — the input is uppercased for you. One number at a time; the result updates as you type.

  3. Pick the output base and copy the result

    The converted value appears in the output base you selected, with letters in uppercase, ready to copy.

Typical Use Cases

  • Programming: Process hexadecimal data like memory addresses and color codes
  • Networking: IP address binary conversion and subnet calculations
  • Math Education: Real-time demonstration of base conversion principles
  • Data Encoding: Base32 encoding/decoding operations
  • Hardware Debugging: Machine code to readable format conversion

Core Features

  • Support any base conversion between 2-36
  • Real-time bidirectional conversion
  • Smart error detection and alerts
  • One-click copy results
  • Mobile-friendly design

Supported Number Bases

Full support including but not limited to:

  • Binary(0-1) ↔ Decimal conversion, hexadecimal interchange
  • Base4(0-3) ↔ Octal conversion, base32 interchange
  • Octal(0-7) ↔ Binary conversion, decimal interchange
  • Decimal(0-9) ↔ Fundamental for all base conversions
  • Hexadecimal(0-F) ↔ Binary conversion, color code processing
  • Base32(0-V) ↔ Specialized encoding conversions

Data Security

All conversions are processed locally in your browser. We use session-only processing technology - all input records are automatically cleared when you close the page.

Frequently Asked Questions

Why does an input with letters in it still convert instead of reporting an error?
Because the conversion stops reading at the first character that is not valid for the chosen base and converts what it has read so far. In base 2, "101XYZ" becomes 5 — the letters are ignored rather than rejected. In base 16, "FFzz" becomes 255. An error is only shown when the very first character cannot be parsed at all, so a result appearing does not by itself mean your input was valid.
Are long numbers converted exactly?
No. Values are handled as JavaScript numbers, which are exact only up to 2^53. Converting FFFFFFFFFFFFFFFF from hexadecimal gives 18446744073709552000 where the true value is 18446744073709551615, and the end digits are wrong. Treat anything that large — 64-bit identifiers, GUIDs, cryptographic hashes — as indicative only, and use a big-integer tool when the exact value matters.
Can it convert fractions or decimals?
No, whole numbers only. Everything after the decimal point is discarded: "3.14" in base 10 converts as 3, which is "11" in binary. Negative whole numbers do work — "-FF" in base 16 converts to -255.
Does it send anything to a server?
No. Conversion happens in your browser as you type, and neither the number nor the result leaves the page.