Mathematical Tools

Active tool: Base / Radix Converter

Selected option: Conversions update automatically

What It Does

Converts a number between binary, octal, decimal, hex, and any base from 2 to 36 — all at once, in your browser. Optionally interprets the value as a fixed-width signed (two’s-complement) integer. Nothing is uploaded.

How to Use It

  1. Type your value and choose the base it’s written in.
  2. Pick which output bases to show (binary/octal/decimal/hex are on by default).
  3. Toggle Grouping for readability, or Signed + a Width to work in two’s-complement.
  4. Click Copy on any row to grab it.

Options Explained

OptionDescription
ValueThe number to convert. You can paste with 0x/0o/0b prefixes or grouped digits.
In baseThe base your value is written in (2–36).
Output basesWhich bases to display the result in.
GroupingAdds spaces between digit groups for readability (doesn’t change the value).
SignedInterpret/emit as a fixed-width two’s-complement integer.
WidthThe bit width (8/16/32/64) used when Signed is on.
💡 Tip: Turn on Signed with a width to see exactly how negative numbers are stored in hardware — -1 becomes all 1-bits (FF, FFFF, …) in two’s-complement.
Input

Enter a value to see it in every selected base.

Output bases

About Number Bases — Positional Notation & Two’s Complement

A number base (or radix) is just how many distinct digits a place-value system uses before it “carries” to the next column. Decimal (base 10) uses 0–9; binary (base 2) uses 0–1; hexadecimal (base 16) uses 0–9 then A–F. In every base, each digit’s worth is its face value times the base raised to the digit’s position — so hex FF3A is 15·16³ + 15·16² + 3·16¹ + 10·16⁰ = 65338.

Programmers reach for hex and binary constantly because they map cleanly onto how computers store data: one hex digit is exactly four bits (a “nibble”), so a byte is two hex digits. Negative integers are usually stored in two’s complement, where the top bit carries negative weight; that’s why, at a fixed width, -1 is represented as all 1-bits (FF in 8-bit, FFFF in 16-bit). Because this tool uses arbitrary-precision integers, it converts numbers far larger than a normal 64-bit value exactly, with no rounding — and, like every tool here, it runs entirely on your device.